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

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

Modified the release kit so that Apache is no longer statically compiled and msvcr100.dll is copied into the correct directory

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