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

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

Corrected a few incorrect file paths

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