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