[17423] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <project name="mark2-create-components" default="create-components">
|
---|
| 3 |
|
---|
| 4 | <!-- create components from the distribution folder -->
|
---|
[17652] | 5 |
|
---|
| 6 | <!-- 1st level -->
|
---|
[17423] | 7 | <target name="create-components">
|
---|
[17652] | 8 | <antcall target="prepare-components" />
|
---|
| 9 | <antcall target="compress-components" />
|
---|
[17423] | 10 | </target>
|
---|
[17652] | 11 |
|
---|
| 12 | <!-- 2nd level -->
|
---|
| 13 | <target name="prepare-components">
|
---|
| 14 | <antcall target="prepare-core-component" />
|
---|
[17663] | 15 | <antcall target="prepare-imagemagick-component" />
|
---|
| 16 | <antcall target="prepare-ghostscript-component" />
|
---|
[17786] | 17 |
|
---|
[17814] | 18 | <antcall target="prepare-sourcecode-component" />
|
---|
| 19 |
|
---|
[17652] | 20 | </target>
|
---|
[17423] | 21 |
|
---|
[17652] | 22 | <target name="compress-components">
|
---|
| 23 | <antcall target="compress-core-component" />
|
---|
[17663] | 24 | <antcall target="compress-imagemagick-component" />
|
---|
| 25 | <antcall target="compress-ghostscript-component" />
|
---|
[17786] | 26 |
|
---|
[17956] | 27 | <antcall target="compress-zipped-binary-release" /> <!-- from init -->
|
---|
[17652] | 28 | </target>
|
---|
| 29 |
|
---|
| 30 | <!-- 3rd level -->
|
---|
[17423] | 31 | <target name="create-core-component">
|
---|
| 32 | <antcall target="prepare-core-component" />
|
---|
| 33 | <antcall target="compress-core-component" />
|
---|
| 34 | </target>
|
---|
| 35 |
|
---|
| 36 | <target name="create-sourcecode-component">
|
---|
| 37 | <antcall target="prepare-sourcecode-component" />
|
---|
| 38 | <antcall target="compress-sourcecode-component" />
|
---|
| 39 | </target>
|
---|
| 40 |
|
---|
[17659] | 41 | <!-- core -->
|
---|
[17423] | 42 | <target name="prepare-core-component">
|
---|
[17453] | 43 |
|
---|
| 44 | <delete dir="components/tmp/core"/>
|
---|
[17423] | 45 | <mkdir dir="components/tmp/core"/>
|
---|
[17453] | 46 |
|
---|
[17423] | 47 | <copy todir="components/tmp/core" overwrite="true">
|
---|
| 48 | <fileset dir="distributions/web">
|
---|
| 49 | <include name="**/*"/>
|
---|
| 50 |
|
---|
[18005] | 51 | <!-- exclude sourcecode + imagemagick + build files -->
|
---|
[17652] | 52 | <exclude name="common-src"/>
|
---|
[17423] | 53 | <exclude name="common-src/**/*"/>
|
---|
[17652] | 54 | <exclude name="runtime-src"/>
|
---|
[17423] | 55 | <exclude name="runtime-src/**/*"/>
|
---|
[17652] | 56 | <exclude name="build-src"/>
|
---|
[17423] | 57 | <exclude name="build-src/**/*"/>
|
---|
[17660] | 58 | <exclude name="bin/darwin/imagemagick"/>
|
---|
| 59 | <exclude name="bin/darwin/imagemagick/**/*"/>
|
---|
[17707] | 60 | <exclude name="bin/darwin/ghostscript"/>
|
---|
| 61 | <exclude name="bin/darwin/ghostscript/**/*"/>
|
---|
[17423] | 62 |
|
---|
[18005] | 63 | <exclude name="acconfig.h"/>
|
---|
| 64 | <exclude name="aclocal.m4"/>
|
---|
| 65 | <exclude name="config.sub"/>
|
---|
| 66 | <exclude name="configtest.pl"/>
|
---|
| 67 | <exclude name="configure"/>
|
---|
| 68 | <exclude name="configure.in"/>
|
---|
| 69 | <exclude name="install-sh"/>
|
---|
| 70 | <exclude name="Makefile.in"/>
|
---|
| 71 | <exclude name="micotest.cpp"/>
|
---|
[18008] | 72 | <exclude name="config.h.in"/>
|
---|
[18049] | 73 | <exclude name="Install.txt"/>
|
---|
[18005] | 74 |
|
---|
[18007] | 75 | <exclude name="README*.txt"/>
|
---|
| 76 | <include name="READMEen.txt"/>
|
---|
| 77 |
|
---|
| 78 |
|
---|
[17423] | 79 | </fileset>
|
---|
| 80 | </copy>
|
---|
| 81 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
|
---|
| 82 | </target>
|
---|
| 83 |
|
---|
| 84 | <target name="compress-core-component">
|
---|
| 85 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
| 86 | </target>
|
---|
[17659] | 87 |
|
---|
| 88 | <!-- sourcecode -->
|
---|
[17423] | 89 | <target name="prepare-sourcecode-component">
|
---|
[17453] | 90 |
|
---|
| 91 | <delete dir="components/tmp/sourcecode"/>
|
---|
[17423] | 92 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
[17453] | 93 |
|
---|
[18005] | 94 | <exec dir="${basedir}" executable="cp">
|
---|
| 95 | <arg line="-r distributions/web/common-src distributions/web/build-src distributions/web/runtime-src components/tmp/sourcecode"/>
|
---|
| 96 | </exec>
|
---|
| 97 | <exec dir="distributions/web" executable="cp">
|
---|
[18049] | 98 | <arg line="acconfig.h aclocal.m4 config.guess config.sub configtest.pl configure configure.in install-sh Makefile.in micotest.cpp config.h.in Install.txt ${basedir}/components/tmp/sourcecode"/>
|
---|
[18005] | 99 | </exec>
|
---|
[17423] | 100 |
|
---|
[17956] | 101 | <mkdir dir="products"/>
|
---|
[18002] | 102 |
|
---|
| 103 | <!-- create a script to create the tar -->
|
---|
| 104 | <echo output="create-sourcecode-component.sh">
|
---|
| 105 | tar -czf ../../../products/Greenstone-${version}-${os.suffix}-sourcecode-component.tar.gz *
|
---|
| 106 | </echo>
|
---|
| 107 | <chmod perm="+x" file="create-sourcecode-component.sh"/>
|
---|
| 108 |
|
---|
| 109 | <!-- run it -->
|
---|
| 110 | <exec dir="components/tmp/sourcecode" executable="/bin/bash">
|
---|
| 111 | <arg line="${basedir}/create-sourcecode-component.sh"/>
|
---|
[17981] | 112 | </exec>
|
---|
[18002] | 113 |
|
---|
| 114 | <!-- remove it -->
|
---|
| 115 | <delete file="create-sourcecode-component.sh"/>
|
---|
| 116 |
|
---|
[17423] | 117 | </target>
|
---|
[17659] | 118 |
|
---|
[17423] | 119 | <target name="compress-sourcecode-component">
|
---|
| 120 | <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
|
---|
| 121 | </target>
|
---|
[17652] | 122 |
|
---|
[17659] | 123 | <!-- imagemagick -->
|
---|
| 124 | <target name="prepare-imagemagick-component">
|
---|
| 125 |
|
---|
| 126 | <delete dir="components/tmp/imagemagick"/>
|
---|
| 127 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
| 128 |
|
---|
| 129 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
[17660] | 130 | <fileset dir="distributions/web/bin/darwin">
|
---|
[17659] | 131 | <include name="imagemagick/**/*"/>
|
---|
[17652] | 132 | </fileset>
|
---|
| 133 | </copy>
|
---|
[17659] | 134 |
|
---|
| 135 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
|
---|
[17652] | 136 | </target>
|
---|
[17659] | 137 |
|
---|
| 138 | <target name="compress-imagemagick-component">
|
---|
| 139 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
[17652] | 140 | </target>
|
---|
[17707] | 141 |
|
---|
[17663] | 142 | <!-- ghostscript -->
|
---|
| 143 | <target name="prepare-ghostscript-component">
|
---|
| 144 |
|
---|
| 145 | <delete dir="components/tmp/ghostscript"/>
|
---|
| 146 | <mkdir dir="components/tmp/ghostscript"/>
|
---|
| 147 |
|
---|
| 148 | <copy todir="components/tmp/ghostscript" overwrite="true">
|
---|
| 149 | <fileset dir="distributions/web/bin/darwin">
|
---|
| 150 | <include name="ghostscript/**/*"/>
|
---|
| 151 | </fileset>
|
---|
| 152 | </copy>
|
---|
| 153 |
|
---|
| 154 | <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" includes="**/*"/>
|
---|
| 155 | </target>
|
---|
| 156 |
|
---|
| 157 | <target name="compress-ghostscript-component">
|
---|
| 158 | <sevenzip task="encode" input="components/ghostscript.comp" output="components/ghostscript.lzma" dictionnary="26"/>
|
---|
| 159 | </target>
|
---|
| 160 |
|
---|
[17423] | 161 | </project>
|
---|