source: release-kits/lirk2/ant-scripts/create-components.xml@ 17721

Last change on this file since 17721 was 17721, checked in by oranfry, 15 years ago

gave each sourcecode component zip a unique name

File size: 4.0 KB
RevLine 
[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" />
[17644]15 <antcall target="prepare-sourcecode-component" />
16 <antcall target="prepare-imagemagick-component" />
[17649]17 <antcall target="prepare-sourcecode-core-component" />
[17396]18 </target>
19
[17644]20 <target name="compress-components">
21 <antcall target="compress-core-component" />
[17396]22 <antcall target="compress-sourcecode-component" />
[17644]23 <antcall target="compress-imagemagick-component" />
[17649]24 <antcall target="compress-sourcecode-core-component" />
[17396]25 </target>
[17649]26
27 <!-- 3rd level -->
[17659]28
29 <!-- core -->
[17396]30 <target name="prepare-core-component">
[17450]31
32 <delete dir="components/tmp/core"/>
[17396]33 <mkdir dir="components/tmp/core"/>
[17450]34
[17396]35 <copy todir="components/tmp/core" overwrite="true">
36 <fileset dir="distributions/web">
[17422]37 <include name="**/*"/>
38
[17659]39 <!-- exclude sourcecode + imagemagick -->
[17644]40 <exclude name="common-src"/>
[17422]41 <exclude name="common-src/**/*"/>
[17644]42 <exclude name="runtime-src"/>
[17422]43 <exclude name="runtime-src/**/*"/>
[17644]44 <exclude name="build-src"/>
[17422]45 <exclude name="build-src/**/*"/>
[17644]46 <exclude name="bin/linux/imagemagick"/>
47 <exclude name="bin/linux/imagemagick/**/*"/>
[17422]48
[17396]49 </fileset>
50 </copy>
51 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
52 </target>
53
54 <target name="compress-core-component">
55 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
56 </target>
[17659]57
58 <!-- sourcecode core -->
59 <target name="prepare-sourcecode-core-component">
60 <delete dir="components/tmp/sourcecode-core"/>
61 <mkdir dir="components/tmp/sourcecode-core"/>
62
63 <copy todir="components/tmp/sourcecode-core" overwrite="true">
64 <fileset dir="distributions/source">
65 <include name="macros/**/*"/>
66 <include name="images/**/*"/>
67 <include name="etc/**/*"/>
68 <include name="gli/**/*"/>
69 <include name="collect/**/*"/>
70 <include name="doc/**/*"/>
71 <include name="setup.bash"/>
72 </fileset>
73 </copy>
74 <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
75 </target>
[17396]76
[17659]77 <target name="compress-sourcecode-core-component">
78 <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>
79 </target>
80
81 <!-- sourcecode -->
[17396]82 <target name="prepare-sourcecode-component">
[17450]83
84 <delete dir="components/tmp/sourcecode"/>
[17396]85 <mkdir dir="components/tmp/sourcecode"/>
[17450]86
[17396]87 <copy todir="components/tmp/sourcecode" overwrite="true">
88 <fileset dir="distributions/web">
89 <include name="common-src/**/*"/>
90 <include name="runtime-src/**/*"/>
91 <include name="build-src/**/*"/>
92 </fileset>
93 </copy>
94
[17712]95 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false"/>
[17721]96 <zip destfile="components/Greenstone-${version}-linux-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
[17396]97 </target>
98
99 <target name="compress-sourcecode-component">
100 <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
101 </target>
102
[17659]103 <!-- imagemagick -->
[17644]104 <target name="prepare-imagemagick-component">
105
106 <delete dir="components/tmp/imagemagick"/>
107 <mkdir dir="components/tmp/imagemagick"/>
108
109 <copy todir="components/tmp/imagemagick" overwrite="true">
110 <fileset dir="distributions/web/bin/linux">
111 <include name="imagemagick/**/*"/>
112 </fileset>
113 </copy>
114
115 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
116 </target>
117
118 <target name="compress-imagemagick-component">
119 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
120 </target>
[17649]121
[17396]122</project>
Note: See TracBrowser for help on using the repository browser.