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

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

shifted the responsibility for the source release to the linux release kit. Made the source release contain a single component with the core and sourcecode mixed together

File size: 3.6 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 <!-- 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
118</project>
Note: See TracBrowser for help on using the repository browser.