[17396] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <project name="lirk2-create-components" default="create-components">
|
---|
| 3 |
|
---|
| 4 | <!-- create components from the distribution folder -->
|
---|
[17649] | 5 |
|
---|
| 6 | <!-- 1st level -->
|
---|
[17396] | 7 | <target name="create-components">
|
---|
[17644] | 8 | <antcall target="prepare-components" />
|
---|
| 9 | <antcall target="compress-components" />
|
---|
[17396] | 10 | </target>
|
---|
[17644] | 11 |
|
---|
[17649] | 12 | <!-- 2nd level -->
|
---|
[17644] | 13 | <target name="prepare-components">
|
---|
[17396] | 14 | <antcall target="prepare-core-component" />
|
---|
[17786] | 15 | <antcall target="prepare-imagemagick-component" />
|
---|
| 16 |
|
---|
[17644] | 17 | <antcall target="prepare-sourcecode-component" />
|
---|
[17786] | 18 |
|
---|
| 19 | <antcall target="prepare-source-release" />
|
---|
[17396] | 20 | </target>
|
---|
| 21 |
|
---|
[17644] | 22 | <target name="compress-components">
|
---|
| 23 | <antcall target="compress-core-component" />
|
---|
| 24 | <antcall target="compress-imagemagick-component" />
|
---|
[17786] | 25 |
|
---|
| 26 | <!--<antcall target="compress-sourcecode-component" />-->
|
---|
| 27 |
|
---|
| 28 | <antcall target="compress-source-release" />
|
---|
[17396] | 29 | </target>
|
---|
[17649] | 30 |
|
---|
| 31 | <!-- 3rd level -->
|
---|
[17659] | 32 |
|
---|
| 33 | <!-- core -->
|
---|
[17396] | 34 | <target name="prepare-core-component">
|
---|
[17450] | 35 |
|
---|
| 36 | <delete dir="components/tmp/core"/>
|
---|
[17396] | 37 | <mkdir dir="components/tmp/core"/>
|
---|
[17450] | 38 |
|
---|
[17396] | 39 | <copy todir="components/tmp/core" overwrite="true">
|
---|
| 40 | <fileset dir="distributions/web">
|
---|
[17422] | 41 | <include name="**/*"/>
|
---|
| 42 |
|
---|
[17659] | 43 | <!-- exclude sourcecode + imagemagick -->
|
---|
[17644] | 44 | <exclude name="common-src"/>
|
---|
[17422] | 45 | <exclude name="common-src/**/*"/>
|
---|
[17644] | 46 | <exclude name="runtime-src"/>
|
---|
[17422] | 47 | <exclude name="runtime-src/**/*"/>
|
---|
[17644] | 48 | <exclude name="build-src"/>
|
---|
[17422] | 49 | <exclude name="build-src/**/*"/>
|
---|
[17644] | 50 | <exclude name="bin/linux/imagemagick"/>
|
---|
| 51 | <exclude name="bin/linux/imagemagick/**/*"/>
|
---|
[17422] | 52 |
|
---|
[17396] | 53 | </fileset>
|
---|
| 54 | </copy>
|
---|
| 55 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
|
---|
| 56 | </target>
|
---|
| 57 |
|
---|
| 58 | <target name="compress-core-component">
|
---|
| 59 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
| 60 | </target>
|
---|
[17659] | 61 |
|
---|
| 62 | <!-- sourcecode -->
|
---|
[17396] | 63 | <target name="prepare-sourcecode-component">
|
---|
[17450] | 64 |
|
---|
| 65 | <delete dir="components/tmp/sourcecode"/>
|
---|
[17396] | 66 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
[17450] | 67 |
|
---|
[17396] | 68 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
| 69 | <fileset dir="distributions/web">
|
---|
| 70 | <include name="common-src/**/*"/>
|
---|
| 71 | <include name="runtime-src/**/*"/>
|
---|
| 72 | <include name="build-src/**/*"/>
|
---|
| 73 | </fileset>
|
---|
| 74 | </copy>
|
---|
| 75 |
|
---|
[17721] | 76 | <zip destfile="components/Greenstone-${version}-linux-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
|
---|
[17396] | 77 | </target>
|
---|
| 78 |
|
---|
| 79 | <target name="compress-sourcecode-component">
|
---|
| 80 | <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
|
---|
| 81 | </target>
|
---|
| 82 |
|
---|
[17659] | 83 | <!-- imagemagick -->
|
---|
[17644] | 84 | <target name="prepare-imagemagick-component">
|
---|
| 85 |
|
---|
| 86 | <delete dir="components/tmp/imagemagick"/>
|
---|
| 87 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
| 88 |
|
---|
| 89 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
| 90 | <fileset dir="distributions/web/bin/linux">
|
---|
| 91 | <include name="imagemagick/**/*"/>
|
---|
| 92 | </fileset>
|
---|
| 93 | </copy>
|
---|
| 94 |
|
---|
| 95 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
|
---|
| 96 | </target>
|
---|
| 97 |
|
---|
| 98 | <target name="compress-imagemagick-component">
|
---|
| 99 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
| 100 | </target>
|
---|
[17649] | 101 |
|
---|
[17786] | 102 | <!-- source-release -->
|
---|
| 103 | <target name="prepare-source-release">
|
---|
| 104 | <delete dir="components/tmp/source-release"/>
|
---|
| 105 | <mkdir dir="components/tmp/source-release"/>
|
---|
| 106 |
|
---|
| 107 | <copy todir="components/tmp/source-release" overwrite="true">
|
---|
| 108 | <fileset dir="distributions/source"/>
|
---|
| 109 | </copy>
|
---|
| 110 | <zip destfile="components/source-release.comp" basedir="components/tmp/source-release" compress="false" includes="**/*"/>
|
---|
| 111 | </target>
|
---|
| 112 |
|
---|
| 113 | <target name="compress-source-release">
|
---|
| 114 | <sevenzip task="encode" input="components/source-release.comp" output="components/source-release.lzma" dictionnary="26"/>
|
---|
| 115 | </target>
|
---|
| 116 |
|
---|
| 117 |
|
---|
[17396] | 118 | </project>
|
---|