root/main/trunk/release-kits/kits/rk2/ant-scripts/compile.xml @ 23051

Revision 23051, 22.2 KB (checked in by sjm84, 10 years ago)

Reverted rk2 back to compiling up the gnome-lib (possibly temporarily) and updated the svn URLs for both rk2 and rk3

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