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

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

moved this to a shared area

File size: 3.2 KB
Line 
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 -->
5
6 <!-- 1st level -->
7 <target name="create-components">
8 <antcall target="prepare-components" />
9 <antcall target="compress-components" />
10 </target>
11
12 <!-- 2nd level -->
13 <target name="prepare-components">
14 <antcall target="prepare-core-component" />
15 <antcall target="prepare-imagemagick-component" />
16
17 <antcall target="prepare-sourcecode-component" />
18
19 <antcall target="prepare-source-release" />
20 </target>
21
22 <target name="compress-components">
23 <antcall target="compress-core-component" />
24 <antcall target="compress-imagemagick-component" />
25
26 <!--<antcall target="compress-sourcecode-component" />-->
27
28 <antcall target="compress-source-release" />
29 </target>
30
31 <!-- 3rd level -->
32
33 <!-- core -->
34 <target name="prepare-core-component">
35
36 <delete dir="components/tmp/core"/>
37 <mkdir dir="components/tmp/core"/>
38
39 <copy todir="components/tmp/core" overwrite="true">
40 <fileset dir="distributions/web">
41 <include name="**/*"/>
42
43 <!-- exclude sourcecode + imagemagick -->
44 <exclude name="common-src"/>
45 <exclude name="common-src/**/*"/>
46 <exclude name="runtime-src"/>
47 <exclude name="runtime-src/**/*"/>
48 <exclude name="build-src"/>
49 <exclude name="build-src/**/*"/>
50 <exclude name="bin/linux/imagemagick"/>
51 <exclude name="bin/linux/imagemagick/**/*"/>
52
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>
61
62 <!-- sourcecode -->
63 <target name="prepare-sourcecode-component">
64
65 <delete dir="components/tmp/sourcecode"/>
66 <mkdir dir="components/tmp/sourcecode"/>
67
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
76 <zip destfile="components/Greenstone-${version}-linux-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
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
83 <!-- imagemagick -->
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>
101
102 <target name="compress-source-release">
103 <sevenzip task="encode" input="components/source-release.comp" output="components/source-release.lzma" dictionnary="26"/>
104 </target>
105
106
107</project>
Note: See TracBrowser for help on using the repository browser.