source: main/trunk/release-kits/kits/rk3/ant-scripts/compile.xml@ 21725

Last change on this file since 21725 was 21725, checked in by oranfry, 12 years ago

got rk2 and rk3 going on mac

File size: 3.3 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="rk3-compile">
3
4 <target name="compile">
5
6 <!-- checkout greenstone3 -->
7 <exec executable="svn">
8 <arg value="checkout"/>
9 <arg value="${svn.root}/main/${branch.path}/greenstone3"/>
10 <arg value="compiled"/>
11 <arg value="-r"/><arg value="${branch.revision}"/>
12 </exec>
13
14 <!-- run greenstone3's ant prepare -->
15 <ant dir="compiled" inheritAll="false">
16 <target name="prepare"/>
17 <propertyset refid="forward.properties"/>
18 </ant>
19
20 <!-- set all version numbers -->
21 <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="compiled"/></antcall>
22 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="compiled/gli"/></antcall>
23 <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="compiled/gs2build"/></antcall>
24
25 <!-- run greenstone3's ant install and ant dist-tidy -->
26 <ant dir="compiled" inheritAll="false">
27 <target name="install"/>
28 <target name="dist-tidy"/>
29 <propertyset refid="forward.properties"/>
30 </ant>
31
32 <!-- insert an xml parser -->
33 <copy todir="compiled/gs2build/perllib/cpan">
34 <fileset dir="${rk.home}/shared/greenstone3" includes="XML-Parser/**/*"/>
35 </copy>
36
37 <!-- TODO: insert-ant -->
38
39 <!-- put the uninstaller in place -->
40 <antcall target="insert-and-compile-uninstaller"/>
41
42 <!-- (windows only) -->
43 <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
44 <!-- insert perl -->
45 <unzip src="${rk.home}/shared/windows/perl.zip" dest="compiled/gs2build/bin/windows"/>
46 </if>
47
48 <!-- minify tomcat -->
49 <delete dir="compiled/packages/tomcat/webapps/docs"/>
50 <delete dir="compiled/packages/tomcat/webapps/examples"/>
51
52 <!-- tidy up gli to make it smaller -->
53 <antcall target="gli-tidy-for-dist"><param name="glibasedir" value="compiled/gli"/></antcall>
54
55 <!-- strip out .svn dirs -->
56 <antcall target="strip-svn-dirs"><param name="dir" value="compiled"/></antcall>
57
58 <!-- (linux only) -->
59 <if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
60 <!-- grab imagemagick binaries -->
61 <delete dir="compiled/gs2build/bin/linux/imagemagick"/>
62 <exec executable="svn">
63 <arg value="export"/>
64 <arg value="${svn.root}/main/${branch.path}/binaries/linux/imagemagick"/>
65 <arg value="compiled/gs2build/bin/linux/imagemagick"/>
66 </exec>
67
68 <!-- grab wv binaries -->
69 <delete dir="compiled/gs2build/bin/linux/wv"/>
70 <exec executable="svn">
71 <arg value="export"/>
72 <arg value="${svn.root}/main/${branch.path}/binaries/linux/wv"/>
73 <arg value="compiled/gs2build/bin/linux/wv"/>
74 </exec>
75 <!-- (mac only) -->
76 <else><if><bool><equals arg1="${rk.os}" arg2="mac"/></bool>
77 <!-- grab imagemagick binaries -->
78 <delete dir="compiled/gs2build/bin/darwin/imagemagick"/>
79 <exec executable="svn">
80 <arg value="export"/>
81 <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/imagemagick"/>
82 <arg value="compiled/gs2build/bin/darwin/imagemagick"/>
83 </exec>
84
85 <!-- grab ghostscript binaries -->
86 <delete dir="compiled/gs2build/bin/darwin/ghostscript"/>
87 <exec executable="svn">
88 <arg value="export"/>
89 <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/ghostscript"/>
90 <arg value="compiled/gs2build/bin/darwin/ghostscript"/>
91 </exec>
92 </if></else></if>
93
94 </target>
95
96</project>
Note: See TracBrowser for help on using the repository browser.