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

Last change on this file since 22997 was 22997, checked in by sjm84, 13 years ago

Adding the Visual Studio 7 CRT so that Apache will run when compiled with an older version of Visual Studio

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