source: main/trunk/release-kits/kits/rk2/ant-scripts/compile.xml@ 22821

Last change on this file since 22821 was 22821, checked in by ak19, 14 years ago

Linux and Mac release kits now use the gnome-lib extension to assist compilation

File size: 20.6 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="rk2-compile">
3
4 <target name="compile" depends="init,gs2-init">
5 <!-- checkout greenstone2 (or gsdl if a pre-2.84 release is being created) and gli -->
6 <if>
7 <bool>
8 <or>
9 <equals arg1="${branch.path}" arg2="trunk"/>
10 <equals arg1="${branch.path}" arg2="tags/stable"/>
11 <isgreaterthan arg1="${branch.tag.version}" arg2="2.83"/>
12 </or>
13 </bool>
14 <exec executable="svn">
15 <arg value="checkout"/>
16 <arg value="${svn.root}/main/${branch.path}/greenstone2"/>
17 <arg value="${basedir}/compiled"/>
18 </exec>
19 <else>
20 <exec executable="svn">
21 <arg value="checkout"/>
22 <arg value="${svn.root}/main/${branch.path}/gsdl"/>
23 <arg value="${basedir}/compiled"/>
24 </exec>
25 </else>
26 </if>
27
28 <exec executable="svn">
29 <arg value="checkout"/>
30 <arg value="${svn.root}/main/${branch.path}/gli"/>
31 <arg value="${basedir}/compiled/gli"/>
32 </exec>
33
34 <!-- drop in documentation -->
35 <copy todir="compiled" overwrite="true">
36 <fileset dir="${rk.home}/shared/greenstone2/docs" excludes="READMEar.txt,READMEes.txt,READMEfr.txt,READMEru.txt"/>
37 </copy>
38
39 <!-- set version numbers -->
40 <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/compiled"/></antcall>
41 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/compiled/gli"/></antcall>
42
43 <!-- we do not want the *.app folders if we are not mac-->
44 <if><bool><not><equals arg1="${rk.os}" arg2="mac"/></not></bool>
45 <delete dir="${basedir}/compiled/client-gli.app"/>
46 <delete dir="${basedir}/compiled/gems.app"/>
47 <delete dir="${basedir}/compiled/gs2-server.app"/>
48 <delete dir="${basedir}/compiled/gli.app"/>
49 </if>
50
51 <!-- mac or linux: compile the support library -->
52 <if><bool><or><equals arg1="${rk.os}" arg2="mac"/><equals arg1="${rk.os}" arg2="linux"/></or></bool>
53 <!-- checkout the gnome support library extension-->
54 <echo>GNOME LIB EXTENSION START</echo>
55 <!--<if><bool><and>
56 <not><equals arg1="${branch.path}" arg2="trunk"/></not>
57 <not><equals arg1="${branch.path}" arg2="tags/stable"/></not>
58 <isgreaterthan arg1="${branch.tag.version}" arg2="2.83"/>
59 </and></bool>-->
60 <exec executable="svn">
61 <arg value="checkout"/>
62 <arg value="${svn.root}/gs2-extensions/gnome-lib/trunk"/>
63 <arg value="${basedir}/compiled/ext/gnome-lib"/>
64 </exec>
65 <exec executable="/bin/bash" dir="${basedir}/compiled/ext/gnome-lib">
66 <arg value="-c"/>
67 <arg value="./CASCADE-MAKE.sh"/>
68 </exec>
69 <!--</if>-->
70 <echo>GNOME LIB EXTENSION END</echo>
71 </if>
72
73 <!-- windows only -->
74 <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
75
76 <!-- unzip packages -->
77 <unzip src="${basedir}/compiled/common-src/packages/windows/crypt/crypt.zip" dest="${basedir}/compiled/common-src/packages/windows/crypt"/>
78
79 <!-- unzip expat if the version is less that 2.84 -->
80 <if><bool><and>
81 <not><equals arg1="${branch.path}" arg2="trunk"/></not>
82 <not><equals arg1="${branch.path}" arg2="tags/stable"/></not>
83 <islessthan arg1="${branch.tag.version}" arg2="2.84"/>
84 </and></bool>
85 <unzip src="${basedir}/compiled/common-src/packages/windows/expat/expat.zip" dest="${basedir}/compiled/common-src/packages/windows/expat"/>
86 </if>
87
88 <unzip src="${basedir}/compiled/common-src/packages/windows/stlport/stlport.zip" dest="${basedir}/compiled/common-src/packages/windows/stlport"/>
89 <unzip src="${basedir}/compiled/common-src/indexers/packages/windows/iconv/iconv.zip" dest="${basedir}/compiled/common-src/indexers/packages/windows/iconv"/>
90 <untar src="${basedir}/compiled/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz" dest="${basedir}/compiled/common-src/packages/sqlite" compression="gzip"/>
91
92 <!-- get winbin from tags if the version is greater than 2.83 otherwise get it from trunk -->
93 <if><bool><not><available file="${basedir}/compiled/bin/windows"/></not></bool>
94 <if><bool><and>
95 <not><equals arg1="${branch.path}" arg2="trunk"/></not>
96 <not><equals arg1="${branch.path}" arg2="tags/stable"/></not>
97 <isgreaterthan arg1="${branch.tag.version}" arg2="2.83"/>
98 </and></bool>
99
100 <exec executable="svn">
101 <arg value="export"/>
102 <arg value="${svn.root}/main/${branch.path}/binaries/windows/bin"/>
103 <arg value="${basedir}/compiled/bin/windows"/>
104 <arg value="-r"/>
105 <arg value="${branch.revision}"/>
106 </exec>
107
108 <else>
109 <exec executable="svn">
110 <arg value="export"/>
111 <arg value="${svn.root}/main/trunk/binaries/windows/bin"/>
112 <arg value="${basedir}/compiled/bin/windows"/>
113 <arg value="-r"/>
114 <arg value="${branch.revision}"/>
115 </exec>
116 </else>
117 </if>
118 </if>
119
120 <!-- insert windows perl -->
121 <unzip src="${rk.home}/shared/windows/perl.zip" dest="compiled/bin/windows"/>
122
123 <exec executable="${basedir}/compiled/bin/windows/gunzip.exe" dir="${basedir}/compiled/runtime-src/packages/apache-httpd">
124 <arg value="-d"/>
125 <arg value="httpd-2.2.11-gs.tar.gz"/>
126 </exec>
127
128 <exec executable="${basedir}/compiled/bin/windows/tar.exe" dir="${basedir}/compiled/runtime-src/packages/apache-httpd">
129 <arg value="-xvf"/>
130 <arg value="httpd-2.2.11-gs.tar"/>
131 </exec>
132
133 <!-- Insert a unique number after every occurrence of the word tempfile to prevent some strange race conditions present on Windows 7 (iuv = InsertUniqueValue) -->
134 <iuv>
135 <fileset dir="${basedir}/compiled/runtime-src/packages/apache-httpd/httpd-2.2.11" includes="**/*.mak"/>
136 <job pattern="tempfile"/>
137 </iuv>
138
139 <rsr>
140 <fileset dir="${basedir}/compiled/runtime-src/packages/apache-httpd/httpd-2.2.11" includes="**/*.mak"/>
141 <job pattern="/MD" replacement="/MT"/>
142 </rsr>
143
144 <!-- compile c code -->
145 <exec dir="${basedir}/compiled" executable="nmake"><arg value="/f"/><arg value="win32.mak"/><arg value="clean"/></exec>
146 <exec dir="${basedir}/compiled" executable="nmake"><arg value="/f"/><arg value="win32.mak"/><arg value="APACHE_HTTPD=1"/></exec>
147 <exec dir="${basedir}/compiled" executable="nmake"><arg value="/f"/><arg value="win32.mak"/><arg value="LOCAL_LIBRARY=1"/></exec>
148 <delete><fileset dir="${basedir}/compiled/apache-httpd" includes="**/*.pdb"/></delete>
149 <mkdir dir="products"/>
150 <copy file="${basedir}/compiled/server.exe" tofile="${basedir}/products/server-${version}.exe"/>
151 <move file="${basedir}/compiled/server.exe" todir="${basedir}/compiled/bin/windows"/>
152
153
154 <!-- linux only -->
155 <else><if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
156 <!-- add static to configure.in -->
157 <rsr file="${basedir}/compiled/configure.in" pattern="^LDFLAGS=.*$" replacement="LDFLAGS=-static"/>
158 <exec dir="${basedir}/compiled" executable="autoconf" output="${basedir}/compiled/configure">
159 <arg value="configure.in"/>
160 </exec>
161
162 <!-- set environment in packages/configure -->
163 <rsr file="${basedir}/compiled/common-src/packages/configure" pattern="^ENVIRONMENT=.*$" replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;"/>
164 <rsr file="${basedir}/compiled/build-src/packages/configure" pattern="^ENVIRONMENT=.*$" replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;"/>
165
166 <!-- run configure -->
167 <exec dir="${basedir}/compiled" executable="${basedir}/compiled/configure" failonerror="true">
168 <arg line="--enable-apache-httpd"/>
169 <env key="PATH" value="${basedir}/compiled/ext/gnome-lib/linux/bin:${env.PATH}"/>
170 <env key="CFLAGS" value="-I${basedir}/compiled/ext/gnome-lib/linux/include"/>
171 <env key="CXXFLAGS" value="-I${basedir}/compiled/ext/gnome-lib/linux/include"/>
172 <env key="LDFLAGS" value="-static -L${basedir}/compiled/ext/gnome-lib/linux/lib"/>
173 </exec>
174
175 <!-- add -static to makefiles -->
176 <rsr file="${basedir}/compiled/build-src/packages/wv/wv-gs/GNUmakefile" pattern="^LDFLAGS =.*$" replacement="LDFLAGS = -static" />
177 <rsr file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =.*$" replacement="LDFLAGS = -static"/>
178 <rsr file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =.*$" replacement="LDFLAGS = -static"/>
179 <rsr file="${basedir}/compiled/build-src/packages/rtftohtml/rtftohtml_src/Makefile" pattern="(-o rtftohtml.{2}EXEEXT.{1})" replacement="$1 -static"/>
180
181 <!-- mac only -->
182 <else><if><bool><equals arg1="${rk.os}" arg2="mac"/></bool>
183 <!-- run configure -->
184 <exec dir="${basedir}/compiled" executable="${basedir}/compiled/configure" failonerror="true">
185 <arg line="--enable-apache-httpd"/>
186 </exec>
187
188 <!-- tweak makefiles -->
189 <rsr file="${basedir}/compiled/runtime-src/src/recpt/Makefile" pattern="^(LIBS =.*)-L(.)\(PACKAGES_DIR\)/expat/lib -lexpat(.*)$" replacement="$1$2(PACKAGES_DIR)/expat/lib/libexpat.a$3"/>
190 <rsr file="${basedir}/compiled/runtime-src/src/oaiservr/Makefile" pattern="^(LIBS =.*)-L(.)\(PACKAGES_DIR\)/expat/lib -lexpat(.*)$" replacement="$1$2(PACKAGES_DIR)/expat/lib/libexpat.a$3"/>
191
192 </if></else></if></else></if>
193
194 <!-- mac and linux: compile -->
195 <if><bool><or><equals arg1="${rk.os}" arg2="mac"/><equals arg1="${rk.os}" arg2="linux"/></or></bool>
196 <!-- make -->
197 <exec dir="${basedir}/compiled" executable="make" failonerror="true">
198 <env key="PATH" value="${basedir}/compiled/ext/gnome-lib/linux/bin:${env.PATH}"/>
199 <env key="CFLAGS" value="-I${basedir}/compiled/ext/gnome-lib/linux/include"/>
200 <env key="CXXFLAGS" value="-I${basedir}/compiled/ext/gnome-lib/linux/include"/>
201 <env key="LDFLAGS" value="-static -L${basedir}/compiled/ext/gnome-lib/linux/lib"/>
202 </exec>
203
204 <!-- make install -->
205 <exec dir="${basedir}/compiled" executable="make" failonerror="true"><arg value="install"/></exec>
206
207 <!-- make apache-for-dist -->
208 <exec dir="${basedir}/compiled" executable="make" failonerror="true"><arg value="apache-for-dist"/></exec>
209
210 <!-- strip executables -->
211 <exec dir="${basedir}/compiled/bin/${os.shell}" executable="find" failonerror="true">
212 <arg line=". ! -name . -type f -maxdepth 1 -exec strip {} &#59;"/>
213 </exec>
214 </if>
215
216 <!-- insert the necessary additional xml parser versions-->
217 <if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
218 <!-- Add the 5.6 version if necessary -->
219 <if><bool><not><available file="${basedir}/compiled/perllib/cpan/perl-5.6"/></not></bool>
220 <copy todir="${basedir}/compiled/perllib/cpan">
221 <fileset dir="${rk.home}/shared/linux/XML-Parser" includes="perl-5.6,perl-5.6/**/*"/>
222 </copy>
223 </if>
224
225 <!-- Add the 5.8 version if necessary -->
226 <if><bool><not><available file="${basedir}/compiled/perllib/cpan/perl-5.8"/></not></bool>
227 <copy todir="${basedir}/compiled/perllib/cpan">
228 <fileset dir="${rk.home}/shared/linux/XML-Parser" includes="perl-5.8,perl-5.8/**/*"/>
229 </copy>
230 </if>
231
232 <!-- Add the 5.10 version if necessary -->
233 <if><bool><not><available file="${basedir}/compiled/perllib/cpan/perl-5.10"/></not></bool>
234 <copy todir="${basedir}/compiled/perllib/cpan">
235 <fileset dir="${rk.home}/shared/linux/XML-Parser" includes="perl-5.10,perl-5.10/**/*"/>
236 </copy>
237 </if>
238 </if>
239
240 <!-- compile gli -->
241 <!-- (linux and mac) -->
242 <if><bool><or><equals arg1="${rk.os}" arg2="mac"/><equals arg1="${rk.os}" arg2="linux"/></or></bool>
243 <exec dir="compiled/gli" executable="/bin/bash"><arg value="-c"/><arg value="./makegli.sh"/></exec>
244 <exec dir="compiled/gli" executable="/bin/bash"><arg value="-c"/><arg value="./makejar.sh"/></exec>
245 <!-- windows -->
246 <else><if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
247 <exec dir="compiled/gli" executable="cmd.exe"><arg value="/c"/><arg value="makegli.bat"/></exec>
248 <exec dir="compiled/gli" executable="cmd.exe"><arg value="/c"/><arg value="makejar.bat"/></exec>
249 </if></else></if>
250
251 <delete dir="compiled/gli/jar"/>
252 <delete dir="compiled/gli/classes/org"/>
253 <move file="compiled/gli/GLIServer.jar" todir="compiled/bin/java"/>
254
255 <!-- compile uninstaller -->
256 <antcall target="insert-and-compile-uninstaller" />
257
258 <!-- build demo collection -->
259 <!-- the envs on these execs simulate the environment when you run setup.bat -->
260 <if>
261 <bool>
262 <equals arg1="${rk.os}" arg2="windows"/>
263 </bool>
264
265 <exec dir="${basedir}/compiled" executable="${basedir}/compiled/bin/windows/perl/bin/perl">
266 <arg line="-S"/>
267 <arg line="bin/script/import.pl demo"/>
268 <env key="GSDLHOME" path="${basedir}/compiled"/>
269 <env key="GSDLCOLLECTDIR" path="${basedir}/compiled/collect"/>
270 <env key="GSDLOS" value="windows"/>
271 <env key="PATH" path="${basedir}/compiled/bin/windows/perl/bin:${basedir}/compiled/bin/windows:${basedir}/compiled/bin/script:${env.PATH}"/>
272 </exec>
273 <exec dir="${basedir}/compiled" executable="${basedir}/compiled/bin/windows/perl/bin/perl">
274 <arg line="-S"/>
275 <arg line="bin/script/buildcol.pl demo"/>
276 <env key="GSDLHOME" path="${basedir}/compiled"/>
277 <env key="GSDLCOLLECTDIR" path="${basedir}/compiled/collect"/>
278 <env key="GSDLOS" value="windows"/>
279 <env key="PATH" path="${basedir}/compiled/bin/windows/perl/bin:${basedir}/compiled/bin/windows:${basedir}/compiled/bin/script:${env.PATH}"/>
280 </exec>
281
282 <else>
283 <exec dir="${basedir}/compiled" executable="perl">
284 <arg line="-S"/>
285 <arg line="bin/script/import.pl demo"/>
286 <env key="GSDLHOME" path="${basedir}/compiled"/>
287 <env key="GSDLCOLLECTDIR" path="${basedir}/compiled/collect"/>
288 <env key="GSDLOS" value="linux"/>
289 <env key="PATH" path="${basedir}/compiled/bin/linux:${basedir}/compiled/bin/script:${env.PATH}"/>
290 </exec>
291 <exec dir="${basedir}/compiled" executable="perl">
292 <arg line="-S"/>
293 <arg line="bin/script/buildcol.pl demo"/>
294 <env key="GSDLHOME" path="${basedir}/compiled"/>
295 <env key="GSDLCOLLECTDIR" path="${basedir}/compiled/collect"/>
296 <env key="GSDLOS" value="linux"/>
297 <env key="PATH" path="${basedir}/compiled/bin/linux:${basedir}/compiled/bin/script:${env.PATH}"/>
298 </exec>
299 </else>
300 </if>
301 <delete dir="${basedir}/compiled/collect/demo/index"/>
302 <move file="${basedir}/compiled/collect/demo/building" tofile="${basedir}/compiled/collect/demo/index"/>
303
304 <!-- delete the source code -->
305 <delete><fileset dir="compiled" includes="Makefile,config.cache,config.h,config.log,stamp-h,config.status"/></delete>
306 <delete dir="compiled/common-src"/>
307 <delete dir="compiled/build-src"/>
308 <delete dir="compiled/runtime-src"/>
309 <delete><fileset dir="compiled" includes="Install.txt,acconfig.h,aclocal.m4,config.guess,config.sub,configtest.pl,configure,configure.in,install-sh,Makefile.in,micotest.cpp,config.h.in,win32.mak,win32cfg.h"/></delete>
310
311 <!-- strip .svn working-copy dirs -->
312 <antcall target="strip-svn-dirs"><param name="dir" value="compiled"/></antcall>
313
314 <!-- create needed empty files -->
315 <mkdir dir="compiled/tmp"/>
316 <chmod dir="compiled/tmp" perm="a+rwx"/>
317 <echo file="compiled/etc/usage.txt"></echo>
318
319 <!-- windows -->
320 <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
321
322 <!-- make a copy of server.exe in the root -->
323 <copy file="compiled/bin/windows/server.exe" tofile="compiled/server.exe"/>
324
325 <!-- delete sourcecode -->
326 <delete dir="${binzip.dir}/common-src"/>
327 <delete dir="${binzip.dir}/build-src"/>
328 <delete dir="${binzip.dir}/runtime-src"/>
329
330 <!-- create simple zipped binary distribution
331 <mkdir dir="distributions"/>
332 <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
333 <copy todir="${binzip.dir}"><fileset dir="compiled"/></copy>
334 <delete><fileset dir="${binzip.dir}" includes="README*.txt,Uninstall.bat,Uninst.bat,uninst.jar,win32.mak,win32cfg.h,makegs2.bat" excludes="READMEen.txt"/></delete>
335 -->
336
337 <!-- delete unneeded files -->
338 <delete dir="compiled/bin/linux" />
339 <delete><fileset dir="compiled" includes="*.bash,*.sh,*.csh,.gstermrc"/></delete>
340 <delete><fileset dir="compiled/gli" includes="*.sh,*4gs3.bat"/></delete>
341 <delete dir="compiled/autom4te.cache" />
342
343 <!-- linux -->
344 <else><if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
345
346 <!-- grab imagemagick and wv binaries -->
347 <delete dir="compiled/bin/linux/imagemagick"/>
348 <delete dir="compiled/bin/linux/wv"/>
349
350 <if><bool><and>
351 <not><equals arg1="${branch.path}" arg2="trunk"/></not>
352 <not><equals arg1="${branch.path}" arg2="tags/stable"/></not>
353 <isgreaterthan arg1="${branch.tag.version}" arg2="2.83"/>
354 </and></bool>
355
356 <exec executable="svn">
357 <arg value="export"/>
358 <arg value="${svn.root}/main/${branch.path}/binaries/linux/imagemagick"/>
359 <arg value="compiled/bin/linux/imagemagick"/>
360 </exec>
361
362 <exec executable="svn">
363 <arg value="export"/>
364 <arg value="${svn.root}/main/${branch.path}/binaries/linux/wv"/>
365 <arg value="compiled/bin/linux/wv"/>
366 </exec>
367
368 <else>
369 <exec executable="svn">
370 <arg value="export"/>
371 <arg value="${svn.root}/main/trunk/binaries/linux/imagemagick"/>
372 <arg value="compiled/bin/linux/imagemagick"/>
373 </exec>
374
375 <exec executable="svn">
376 <arg value="export"/>
377 <arg value="${svn.root}/main/trunk/binaries/linux/wv"/>
378 <arg value="compiled/bin/linux/wv"/>
379 </exec>
380 </else>
381 </if>
382
383 <!-- delete unneeded files -->
384 <delete><fileset dir="compiled" includes="win32.mak,win32cfg.h,Install.sh,Support.htm,micotest.cpp"/></delete>
385 <delete><fileset dir="compiled/gli" includes="*.bat"/></delete>
386 <delete><fileset dir="compiled" includes="*.bat"/></delete>
387 <delete dir="compiled/common-src/packages/windows"/>
388 <delete dir="compiled/common-src/indexers/packages/windows"/>
389
390 <!-- mac -->
391 <else><if><bool><equals arg1="${rk.os}" arg2="mac"/></bool>
392 <!-- grab imagemagick and ghostscript binaries -->
393 <delete dir="compiled/bin/darwin/imagemagick"/>
394 <delete dir="compiled/bin/darwin/ghostscript"/>
395
396 <if><bool><and>
397 <not><equals arg1="${branch.path}" arg2="trunk"/></not>
398 <not><equals arg1="${branch.path}" arg2="tags/stable"/></not>
399 <isgreaterthan arg1="${branch.tag.version}" arg2="2.83"/>
400 </and></bool>
401
402 <exec executable="svn">
403 <arg value="export"/>
404 <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/imagemagick"/>
405 <arg value="compiled/bin/darwin/imagemagick"/>
406 </exec>
407
408 <exec executable="svn">
409 <arg value="export"/>
410 <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/ghostscript"/>
411 <arg value="compiled/bin/darwin/ghostscript"/>
412 </exec>
413
414 <else>
415 <exec executable="svn">
416 <arg value="export"/>
417 <arg value="${svn.root}/main/trunk/binaries/mac/intel/imagemagick"/>
418 <arg value="compiled/bin/darwin/imagemagick"/>
419 </exec>
420
421 <exec executable="svn">
422 <arg value="export"/>
423 <arg value="${svn.root}/main/trunk/binaries/mac/intel/ghostscript"/>
424 <arg value="compiled/bin/darwin/ghostscript"/>
425 </exec>
426 </else>
427 </if>
428
429 <!-- delete unneeded files -->
430 <delete><fileset dir="compiled" includes="win32.mak,win32cfg.h,Install.sh,Support.htm,*.bat"/></delete>
431 <delete><fileset dir="compiled/gli" includes="*.bat"/></delete>
432 <delete dir="compiled/common-src/packages/windows"/>
433
434 </if></else></if></else></if>
435
436 <!-- delete unneeded files -->
437 <delete dir="compiled/uninstaller" />
438 <delete file="compiled/bin/java/SignedGatherer.jar" />
439
440 <!-- tidy up gli -->
441 <antcall target="gli-tidy-for-dist"><param name="glibasedir" value="compiled/gli"/></antcall>
442
443 <!-- mac and linux: insert export to cdrom package -->
444 <if><bool><or><equals arg1="${rk.os}" arg2="mac"/><equals arg1="${rk.os}" arg2="linux"/></or></bool>
445 <mkdir dir="compiled/bin/windows"/>
446 <get src="${server.exe.location}" dest="compiled/bin/windows/server.exe"/>
447
448 <if><bool><and>
449 <not><equals arg1="${branch.path}" arg2="trunk"/></not>
450 <not><equals arg1="${branch.path}" arg2="tags/stable"/></not>
451 <isgreaterthan arg1="${branch.tag.version}" arg2="2.83"/>
452 </and></bool>
453 <get src="${svn.root}/main/${branch.path}/binaries/windows/bin/Setup.exe" dest="compiled/bin/windows/Setup.exe"/>
454 <get src="${svn.root}/main/${branch.path}/binaries/windows/bin/gssetup.exe" dest="compiled/bin/windows/gssetup.exe"/>
455
456 <else>
457 <get src="${svn.root}/main/trunk/binaries/windows/bin/Setup.exe" dest="compiled/bin/windows/Setup.exe"/>
458 <get src="${svn.root}/main/trunk/binaries/windows/bin/gssetup.exe" dest="compiled/bin/windows/gssetup.exe"/>
459 </else>
460 </if>
461 </if>
462
463 </target>
464
465</project>
Note: See TracBrowser for help on using the repository browser.