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

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

Fixed the windows CRT issues

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