source: release-kits/mark3/ant-scripts/create-components.xml@ 17706

Last change on this file since 17706 was 17706, checked in by max, 15 years ago

Add ImageMagick and Ghostscript Components for Darwin

File size: 6.5 KB
RevLine 
[17423]1<?xml version="1.0" encoding="utf-8" ?>
2<project name="mark3-create-components" default="create-components">
3
4 <!-- create components from the distribution folder -->
[17652]5
6 <!-- 1st level -->
[17423]7 <target name="create-components">
[17652]8 <antcall target="prepare-components" />
9 <antcall target="compress-components" />
[17423]10 </target>
11
[17652]12 <!-- 2nd level -->
13 <target name="prepare-components">
[17423]14 <antcall target="prepare-core-component" />
15 <antcall target="prepare-sourcecode-component" />
16 <antcall target="prepare-ant-component" />
17 <antcall target="prepare-tomcat-component" />
[17706]18 <antcall target="prepare-sourcecode-core-component" />
[17663]19 <antcall target="prepare-imagemagick-component" />
20 <antcall target="prepare-ghostscript-component" />
[17423]21 </target>
[17652]22
23 <target name="compress-components">
24 <antcall target="compress-core-component" />
25 <antcall target="compress-sourcecode-component" />
26 <antcall target="compress-ant-component" />
27 <antcall target="compress-tomcat-component" />
[17706]28 <antcall target="compress-sourcecode-core-component" />
[17663]29 <antcall target="compress-imagemagick-component" />
30 <antcall target="compress-ghostscript-component" />
[17652]31 </target>
32
33 <!-- 3rd level -->
[17659]34 <!-- core -->
[17423]35 <target name="prepare-core-component">
36
[17453]37 <delete dir="components/tmp/core"/>
[17423]38 <mkdir dir="components/tmp/core"/>
39
40 <copy todir="components/tmp/core" overwrite="true">
41 <fileset dir="distribution/greenstone3">
42 <include name="**/*"/>
43
44 <!-- exclude sourcecode -->
[17660]45 <exclude name="src"/>
[17447]46 <exclude name="src/**/*"/>
[17660]47 <exclude name="gs2build/common-src"/>
[17423]48 <exclude name="gs2build/common-src/**/*"/>
[17660]49 <exclude name="gs2build/build-src"/>
[17423]50 <exclude name="gs2build/build-src/**/*"/>
[17660]51 <exclude name="gs2build/runtime-src"/>
[17423]52 <exclude name="gs2build/runtime-src/**/*"/>
53
54 <!-- exclude ant -->
[17660]55 <exclude name="packages/ant"/>
[17423]56 <exclude name="packages/ant/**/*"/>
57
58 <!-- exclude tomcat -->
[17660]59 <exclude name="packages/tomcat"/>
[17423]60 <exclude name="packages/tomcat/**/*"/>
61
[17660]62 <!-- exclude imagemagick -->
63 <exclude name="gs2build/bin/darwin/imagemagick"/>
64 <exclude name="gs2build/bin/darwin/imagemagick/**/*"/>
65
[17423]66 </fileset>
[17706]67 </copy>
[17423]68
69 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
70 </target>
71
72 <target name="compress-core-component">
73 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
74 </target>
75
[17659]76 <!-- sourcecode-core -->
77 <target name="prepare-sourcecode-core-component">
78 <delete dir="components/tmp/sourcecode-core"/>
79 <mkdir dir="components/tmp/sourcecode-core"/>
80
81 <copy todir="components/tmp/sourcecode-core" overwrite="true">
82 <fileset dir="distribution/source">
83 <include name="gli/**/*"/>
84 <include name="docs/**/*"/>
85 <include name="resources/**/*"/>
86 <include name="web/**/*"/>
87 <include name="gs2build/etc/**/*"/>
88 <include name="gs2build/setup.bash"/>
89 <include name="build.xml"/>
90 <include name="build.properties"/>
91 <include name="*.sh"/>
92 <include name="*.txt"/>
93 </fileset>
94 </copy>
95 <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
96 </target>
97
98 <target name="compress-sourcecode-core-component">
99 <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>
100 </target>
101
102
103 <!-- sourcecode -->
[17423]104 <target name="prepare-sourcecode-component">
[17453]105
106 <delete dir="components/tmp/sourcecode"/>
[17423]107 <mkdir dir="components/tmp/sourcecode"/>
[17453]108
[17423]109 <copy todir="components/tmp/sourcecode" overwrite="true">
110 <fileset dir="distribution/greenstone3">
111 <include name="src/**/*"/>
112 <include name="gs2build/common-src/**/*"/>
113 <include name="gs2build/build-src/**/*"/>
114 <include name="gs2build/runtime-src/**/*"/>
115 </fileset>
116 </copy>
117
118 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
119 </target>
120
121 <target name="compress-sourcecode-component">
122 <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
123 </target>
124
[17659]125 <!-- ant -->
[17423]126 <target name="prepare-ant-component">
[17453]127
[17455]128 <delete dir="components/tmp/ant"/>
129 <mkdir dir="components/tmp/ant"/>
[17453]130
[17423]131 <copy todir="components/tmp/ant" overwrite="true">
132 <fileset dir="distribution/greenstone3/packages">
133 <include name="ant/**/*"/>
134 </fileset>
135 </copy>
136
137 <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
138 </target>
139
140 <target name="compress-ant-component">
141 <sevenzip task="encode" input="components/ant.comp" output="components/ant.lzma" dictionnary="26"/>
142 </target>
143
[17659]144 <!-- tomcat -->
[17423]145 <target name="prepare-tomcat-component">
[17453]146
147 <delete dir="components/tmp/tomcat"/>
[17423]148 <mkdir dir="components/tmp/tomcat"/>
[17453]149
[17423]150 <copy todir="components/tmp/tomcat" overwrite="true">
151 <fileset dir="distribution/greenstone3/packages">
152 <include name="tomcat/**/*"/>
153 </fileset>
154 </copy>
155
156 <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
157 </target>
158
159 <target name="compress-tomcat-component">
160 <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
[17659]161 </target>
[17652]162
[17659]163 <!-- imagemagick -->
164 <target name="prepare-imagemagick-component">
[17652]165
[17659]166 <delete dir="components/tmp/imagemagick"/>
167 <mkdir dir="components/tmp/imagemagick"/>
168
169 <copy todir="components/tmp/imagemagick" overwrite="true">
[17660]170 <fileset dir="distribution/greenstone3/gs2build/bin/darwin">
[17659]171 <include name="imagemagick/**/*"/>
[17652]172 </fileset>
173 </copy>
[17659]174
175 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
[17652]176 </target>
[17659]177
178 <target name="compress-imagemagick-component">
179 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
[17652]180 </target>
[17706]181
[17663]182 <!-- ghostscript -->
183 <target name="prepare-ghostscript-component">
184
185 <delete dir="components/tmp/ghostscript"/>
186 <mkdir dir="components/tmp/ghostscript"/>
187
188 <copy todir="components/tmp/ghostscript" overwrite="true">
[17706]189 <fileset dir="distributions/web/bin/darwin">
[17663]190 <include name="ghostscript/**/*"/>
191 </fileset>
192 </copy>
193
194 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" includes="**/*"/>
195 </target>
196
197 <target name="compress-ghostscript-component">
198 <sevenzip task="encode" input="components/ghostscript.comp" output="components/ghostscript.lzma" dictionnary="26"/>
199 </target>
200
[17423]201</project>
Note: See TracBrowser for help on using the repository browser.