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

Last change on this file since 22851 was 22851, checked in by sjm84, 14 years ago

Mac no longer deletes setup.bash and the gnome support library is now removed linux-greenstone3 and partially removed for mac-greenstone3

File size: 22.1 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="CPPFLAGS" value="-I${basedir}/compiled/ext/gnome-lib/linux/include"/>
173 <env key="LDFLAGS" value="-static -L${basedir}/compiled/ext/gnome-lib/linux/lib"/>
174 </exec>
175
176 <!-- add -static to makefiles -->
177 <rsr file="${basedir}/compiled/build-src/packages/wv/wv-gs/GNUmakefile" pattern="^LDFLAGS =.*$" replacement="LDFLAGS = -static" />
178 <rsr file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =.*$" replacement="LDFLAGS = -static"/>
179 <rsr file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =.*$" replacement="LDFLAGS = -static"/>
180 <rsr file="${basedir}/compiled/build-src/packages/rtftohtml/rtftohtml_src/Makefile" pattern="(-o rtftohtml.{2}EXEEXT.{1})" replacement="$1 -static"/>
181
182 <!-- mac only -->
183 <else><if><bool><equals arg1="${rk.os}" arg2="mac"/></bool>
184 <!-- run configure -->
185 <exec dir="${basedir}/compiled" executable="${basedir}/compiled/configure" failonerror="true">
186 <arg line="--enable-apache-httpd"/>
187 <env key="PATH" value="${basedir}/compiled/ext/gnome-lib/darwin/bin:${env.PATH}"/>
188 <env key="CFLAGS" value="-I${basedir}/compiled/ext/gnome-lib/darwin/include"/>
189 <env key="CXXFLAGS" value="-I${basedir}/compiled/ext/gnome-lib/darwin/include"/>
190 <env key="CPPFLAGS" value="-I${basedir}/compiled/ext/gnome-lib/darwin/include"/>
191 <env key="LDFLAGS" value="-L${basedir}/compiled/ext/gnome-lib/darwin/lib"/>
192 </exec>
193
194 <!-- tweak makefiles -->
195 <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"/>
196 <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"/>
197
198 </if></else></if></else></if>
199
200 <!-- mac and linux: compile -->
201 <if><bool><or><equals arg1="${rk.os}" arg2="mac"/><equals arg1="${rk.os}" arg2="linux"/></or></bool>
202 <!-- make -->
203 <exec dir="${basedir}/compiled" executable="make" failonerror="true">
204 <env key="PATH" value="${basedir}/compiled/ext/gnome-lib/${os.shell}/bin:${env.PATH}"/>
205 <env key="CFLAGS" value="-I${basedir}/compiled/ext/gnome-lib/${os.shell}/include"/>
206 <env key="CXXFLAGS" value="-I${basedir}/compiled/ext/gnome-lib/${os.shell}/include"/>
207 <env key="CPPFLAGS" value="-I${basedir}/compiled/ext/gnome-lib/${os.shell}/include"/>
208 <env key="LDFLAGS" value="-static -L${basedir}/compiled/ext/gnome-lib/${os.shell}/lib"/>
209 </exec>
210
211 <!-- make install -->
212 <exec dir="${basedir}/compiled" executable="make" failonerror="true"><arg value="install"/></exec>
213
214 <!-- make apache-for-dist -->
215 <exec dir="${basedir}/compiled" executable="make" failonerror="true"><arg value="apache-for-dist"/></exec>
216
217 <!-- strip executables -->
218 <exec dir="${basedir}/compiled/bin/${os.shell}" executable="find" failonerror="true">
219 <arg line=". ! -name . -type f -maxdepth 1 -exec strip {} &#59;"/>
220 </exec>
221 </if>
222
223 <!-- Delete the entire gnome support library on Linux -->
224 <if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
225 <delete dir="${basedir}/compiled/ext/gnome-lib"/>
226 </if>
227
228 <!-- Delete all but the lib folder and the setup.bash script of the gnome support library on Mac -->
229 <if><bool><equals arg1="${rk.os}" arg2="mac"/></bool>
230 <delete dir="${basedir}/compiled/ext/gnome-lib/cascade-make"/>
231 <delete dir="${basedir}/compiled/ext/gnome-lib/packages"/>
232 <delete dir="${basedir}/compiled/ext/gnome-lib/darwin/bin"/>
233 <delete dir="${basedir}/compiled/ext/gnome-lib/darwin/etc"/>
234 <delete dir="${basedir}/compiled/ext/gnome-lib/darwin/include"/>
235 <delete dir="${basedir}/compiled/ext/gnome-lib/darwin/share"/>
236 <delete file="${basedir}/compiled/ext/gnome-lib/setup.bat"/>
237 <delete file="${basedir}/compiled/ext/gnome-lib/CASCADE-MAKE.sh"/>
238 </if>
239
240 <!-- insert the necessary additional xml parser versions-->
241 <if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
242 <!-- Add the 5.6 version if necessary -->
243 <if><bool><not><available file="${basedir}/compiled/perllib/cpan/perl-5.6"/></not></bool>
244 <copy todir="${basedir}/compiled/perllib/cpan">
245 <fileset dir="${rk.home}/shared/linux/XML-Parser" includes="perl-5.6,perl-5.6/**/*"/>
246 </copy>
247 </if>
248
249 <!-- Add the 5.8 version if necessary -->
250 <if><bool><not><available file="${basedir}/compiled/perllib/cpan/perl-5.8"/></not></bool>
251 <copy todir="${basedir}/compiled/perllib/cpan">
252 <fileset dir="${rk.home}/shared/linux/XML-Parser" includes="perl-5.8,perl-5.8/**/*"/>
253 </copy>
254 </if>
255
256 <!-- Add the 5.10 version if necessary -->
257 <if><bool><not><available file="${basedir}/compiled/perllib/cpan/perl-5.10"/></not></bool>
258 <copy todir="${basedir}/compiled/perllib/cpan">
259 <fileset dir="${rk.home}/shared/linux/XML-Parser" includes="perl-5.10,perl-5.10/**/*"/>
260 </copy>
261 </if>
262 </if>
263
264 <!-- compile gli -->
265 <!-- (linux and mac) -->
266 <if><bool><or><equals arg1="${rk.os}" arg2="mac"/><equals arg1="${rk.os}" arg2="linux"/></or></bool>
267 <exec dir="compiled/gli" executable="/bin/bash"><arg value="-c"/><arg value="./makegli.sh"/></exec>
268 <exec dir="compiled/gli" executable="/bin/bash"><arg value="-c"/><arg value="./makejar.sh"/></exec>
269 <!-- windows -->
270 <else><if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
271 <exec dir="compiled/gli" executable="cmd.exe"><arg value="/c"/><arg value="makegli.bat"/></exec>
272 <exec dir="compiled/gli" executable="cmd.exe"><arg value="/c"/><arg value="makejar.bat"/></exec>
273 </if></else></if>
274
275 <delete dir="compiled/gli/jar"/>
276 <delete dir="compiled/gli/classes/org"/>
277 <move file="compiled/gli/GLIServer.jar" todir="compiled/bin/java"/>
278
279 <!-- compile uninstaller -->
280 <antcall target="insert-and-compile-uninstaller" />
281
282 <!-- build demo collection -->
283 <!-- the envs on these execs simulate the environment when you run setup.bat -->
284 <if>
285 <bool>
286 <equals arg1="${rk.os}" arg2="windows"/>
287 </bool>
288
289 <exec dir="${basedir}/compiled" executable="${basedir}/compiled/bin/windows/perl/bin/perl">
290 <arg line="-S"/>
291 <arg line="bin/script/import.pl demo"/>
292 <env key="GSDLHOME" path="${basedir}/compiled"/>
293 <env key="GSDLCOLLECTDIR" path="${basedir}/compiled/collect"/>
294 <env key="GSDLOS" value="windows"/>
295 <env key="PATH" path="${basedir}/compiled/bin/windows/perl/bin:${basedir}/compiled/bin/windows:${basedir}/compiled/bin/script:${env.PATH}"/>
296 </exec>
297 <exec dir="${basedir}/compiled" executable="${basedir}/compiled/bin/windows/perl/bin/perl">
298 <arg line="-S"/>
299 <arg line="bin/script/buildcol.pl demo"/>
300 <env key="GSDLHOME" path="${basedir}/compiled"/>
301 <env key="GSDLCOLLECTDIR" path="${basedir}/compiled/collect"/>
302 <env key="GSDLOS" value="windows"/>
303 <env key="PATH" path="${basedir}/compiled/bin/windows/perl/bin:${basedir}/compiled/bin/windows:${basedir}/compiled/bin/script:${env.PATH}"/>
304 </exec>
305
306 <else>
307 <exec dir="${basedir}/compiled" executable="perl">
308 <arg line="-S"/>
309 <arg line="bin/script/import.pl demo"/>
310 <env key="GSDLHOME" path="${basedir}/compiled"/>
311 <env key="GSDLCOLLECTDIR" path="${basedir}/compiled/collect"/>
312 <env key="GSDLOS" value="linux"/>
313 <env key="PATH" path="${basedir}/compiled/bin/linux:${basedir}/compiled/bin/script:${env.PATH}"/>
314 </exec>
315 <exec dir="${basedir}/compiled" executable="perl">
316 <arg line="-S"/>
317 <arg line="bin/script/buildcol.pl demo"/>
318 <env key="GSDLHOME" path="${basedir}/compiled"/>
319 <env key="GSDLCOLLECTDIR" path="${basedir}/compiled/collect"/>
320 <env key="GSDLOS" value="linux"/>
321 <env key="PATH" path="${basedir}/compiled/bin/linux:${basedir}/compiled/bin/script:${env.PATH}"/>
322 </exec>
323 </else>
324 </if>
325 <delete dir="${basedir}/compiled/collect/demo/index"/>
326 <move file="${basedir}/compiled/collect/demo/building" tofile="${basedir}/compiled/collect/demo/index"/>
327
328 <!-- delete the source code -->
329 <delete><fileset dir="compiled" includes="Makefile,config.cache,config.h,config.log,stamp-h,config.status"/></delete>
330 <delete dir="compiled/common-src"/>
331 <delete dir="compiled/build-src"/>
332 <delete dir="compiled/runtime-src"/>
333 <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>
334
335 <!-- strip .svn working-copy dirs -->
336 <antcall target="strip-svn-dirs"><param name="dir" value="compiled"/></antcall>
337
338 <!-- create needed empty files -->
339 <mkdir dir="compiled/tmp"/>
340 <chmod dir="compiled/tmp" perm="a+rwx"/>
341 <echo file="compiled/etc/usage.txt"></echo>
342
343 <!-- windows -->
344 <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
345
346 <!-- make a copy of server.exe in the root -->
347 <copy file="compiled/bin/windows/server.exe" tofile="compiled/server.exe"/>
348
349 <!-- delete sourcecode -->
350 <delete dir="${binzip.dir}/common-src"/>
351 <delete dir="${binzip.dir}/build-src"/>
352 <delete dir="${binzip.dir}/runtime-src"/>
353
354 <!-- create simple zipped binary distribution
355 <mkdir dir="distributions"/>
356 <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
357 <copy todir="${binzip.dir}"><fileset dir="compiled"/></copy>
358 <delete><fileset dir="${binzip.dir}" includes="README*.txt,Uninstall.bat,Uninst.bat,uninst.jar,win32.mak,win32cfg.h,makegs2.bat" excludes="READMEen.txt"/></delete>
359 -->
360
361 <!-- delete unneeded files -->
362 <delete dir="compiled/bin/linux" />
363 <delete><fileset dir="compiled" includes="*.bash,*.sh,*.csh,.gstermrc"/></delete>
364 <delete><fileset dir="compiled/gli" includes="*.sh,*4gs3.bat"/></delete>
365 <delete dir="compiled/autom4te.cache" />
366
367 <!-- linux -->
368 <else><if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
369
370 <!-- grab imagemagick and wv binaries -->
371 <delete dir="compiled/bin/linux/imagemagick"/>
372 <delete dir="compiled/bin/linux/wv"/>
373
374 <if><bool><and>
375 <not><equals arg1="${branch.path}" arg2="trunk"/></not>
376 <not><equals arg1="${branch.path}" arg2="tags/stable"/></not>
377 <isgreaterthan arg1="${branch.tag.version}" arg2="2.83"/>
378 </and></bool>
379
380 <exec executable="svn">
381 <arg value="export"/>
382 <arg value="${svn.root}/main/${branch.path}/binaries/linux/imagemagick"/>
383 <arg value="compiled/bin/linux/imagemagick"/>
384 </exec>
385
386 <exec executable="svn">
387 <arg value="export"/>
388 <arg value="${svn.root}/main/${branch.path}/binaries/linux/wv"/>
389 <arg value="compiled/bin/linux/wv"/>
390 </exec>
391
392 <else>
393 <exec executable="svn">
394 <arg value="export"/>
395 <arg value="${svn.root}/main/trunk/binaries/linux/imagemagick"/>
396 <arg value="compiled/bin/linux/imagemagick"/>
397 </exec>
398
399 <exec executable="svn">
400 <arg value="export"/>
401 <arg value="${svn.root}/main/trunk/binaries/linux/wv"/>
402 <arg value="compiled/bin/linux/wv"/>
403 </exec>
404 </else>
405 </if>
406
407 <!-- delete unneeded files -->
408 <delete><fileset dir="compiled" includes="win32.mak,win32cfg.h,Install.sh,Support.htm,micotest.cpp"/></delete>
409 <delete><fileset dir="compiled/gli" includes="*.bat"/></delete>
410 <delete><fileset dir="compiled" includes="*.bat"/></delete>
411 <delete dir="compiled/common-src/packages/windows"/>
412 <delete dir="compiled/common-src/indexers/packages/windows"/>
413
414 <!-- mac -->
415 <else><if><bool><equals arg1="${rk.os}" arg2="mac"/></bool>
416 <!-- grab imagemagick and ghostscript binaries -->
417 <delete dir="compiled/bin/darwin/imagemagick"/>
418 <delete dir="compiled/bin/darwin/ghostscript"/>
419
420 <if><bool><and>
421 <not><equals arg1="${branch.path}" arg2="trunk"/></not>
422 <not><equals arg1="${branch.path}" arg2="tags/stable"/></not>
423 <isgreaterthan arg1="${branch.tag.version}" arg2="2.83"/>
424 </and></bool>
425
426 <exec executable="svn">
427 <arg value="export"/>
428 <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/imagemagick"/>
429 <arg value="compiled/bin/darwin/imagemagick"/>
430 </exec>
431
432 <exec executable="svn">
433 <arg value="export"/>
434 <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/ghostscript"/>
435 <arg value="compiled/bin/darwin/ghostscript"/>
436 </exec>
437
438 <else>
439 <exec executable="svn">
440 <arg value="export"/>
441 <arg value="${svn.root}/main/trunk/binaries/mac/intel/imagemagick"/>
442 <arg value="compiled/bin/darwin/imagemagick"/>
443 </exec>
444
445 <exec executable="svn">
446 <arg value="export"/>
447 <arg value="${svn.root}/main/trunk/binaries/mac/intel/ghostscript"/>
448 <arg value="compiled/bin/darwin/ghostscript"/>
449 </exec>
450 </else>
451 </if>
452
453 <!-- delete unneeded files -->
454 <delete><fileset dir="compiled" includes="win32.mak,win32cfg.h,Install.sh,Support.htm,*.bat"/></delete>
455 <delete><fileset dir="compiled/gli" includes="*.bat"/></delete>
456 <delete dir="compiled/common-src/packages/windows"/>
457
458 </if></else></if></else></if>
459
460 <!-- delete unneeded files -->
461 <delete dir="compiled/uninstaller" />
462 <delete file="compiled/bin/java/SignedGatherer.jar" />
463
464 <!-- tidy up gli -->
465 <antcall target="gli-tidy-for-dist"><param name="glibasedir" value="compiled/gli"/></antcall>
466
467 <!-- mac and linux: insert export to cdrom package -->
468 <if><bool><or><equals arg1="${rk.os}" arg2="mac"/><equals arg1="${rk.os}" arg2="linux"/></or></bool>
469 <mkdir dir="compiled/bin/windows"/>
470 <get src="${server.exe.location}" dest="compiled/bin/windows/server.exe"/>
471
472 <if><bool><and>
473 <not><equals arg1="${branch.path}" arg2="trunk"/></not>
474 <not><equals arg1="${branch.path}" arg2="tags/stable"/></not>
475 <isgreaterthan arg1="${branch.tag.version}" arg2="2.83"/>
476 </and></bool>
477 <get src="${svn.root}/main/${branch.path}/binaries/windows/bin/Setup.exe" dest="compiled/bin/windows/Setup.exe"/>
478 <get src="${svn.root}/main/${branch.path}/binaries/windows/bin/gssetup.exe" dest="compiled/bin/windows/gssetup.exe"/>
479
480 <else>
481 <get src="${svn.root}/main/trunk/binaries/windows/bin/Setup.exe" dest="compiled/bin/windows/Setup.exe"/>
482 <get src="${svn.root}/main/trunk/binaries/windows/bin/gssetup.exe" dest="compiled/bin/windows/gssetup.exe"/>
483 </else>
484 </if>
485 </if>
486
487 </target>
488
489</project>
Note: See TracBrowser for help on using the repository browser.