source: release-kits/mark3/ant-scripts/compile.xml@ 19935

Last change on this file since 19935 was 19935, checked in by oranfry, 15 years ago

it's all good stuff

File size: 3.9 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="mark3-compile" default="compile">
3
4 <target name="compile">
5
6 <!-- checkout -->
7 <antcall target="checkout-greenstone3" />
8
9 <!-- preparation -->
10 <antcall target="greenstone3-set-version-numbers">
11 <param name="greenstone3basedir" value="${basedir}/compiled"/>
12 </antcall>
13 <antcall target="set-gdbm-installed-path" />
14 <ant target="prepare-unix" dir="compiled" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>
15
16 <!-- update -->
17 <ant target="update-unix" dir="compiled" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>
18
19 <!-- configure -->
20 <ant target="configure-unix" dir="compiled" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>
21 <antcall target="tweak-makefiles" />
22
23 <!-- build -->
24 <ant target="build-unix" dir="compiled" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>
25 <antcall target="linux-strip-execs" />
26
27 <!-- uninstaller -->
28 <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
29
30 <!-- documentation -->
31 <antcall target="prepare-documentation" />
32
33 </target>
34
35 <target name="set-version-number-property">
36 <rsr file="compiled/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" />
37 </target>
38
39 <target name="set-gdbm-installed-path">
40 <if>
41 <bool><not><available file="compiled/build.properties"/></not></bool>
42 <copy file="compiled/build.properties.in" tofile="compiled/build.properties"/>
43 </if>
44 <rsr file="compiled/build.properties" pattern="(gdbm.installed.path=).*" replacement="$1${mark3.home}/mac/${processor}/gdbm"/>
45 </target>
46
47 <target name="tweak-makefiles">
48 <rsr
49 file="${basedir}/compiled/gs2build/common-src/src/gdbmedit/db2txt/Makefile"
50 pattern="^(LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$"
51 replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
52
53 <rsr
54 file="${basedir}/compiled/gs2build/common-src/src/gdbmedit/txt2db/Makefile"
55 pattern="^(LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$"
56 replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
57
58 <rsr
59 file="${basedir}/compiled/src/packages/javagdbm/jni/Makefile"
60 pattern="^(GDBM_LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$"
61 replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
62 </target>
63
64 <target name="linux-strip-execs">
65 <exec dir="compiled/gs2build/bin/darwin" executable="find">
66 <arg line=". ! -name . -exec strip {} &#59;"/>
67 </exec>
68 </target>
69
70 <target name="prepare-documentation">
71 <mkdir dir="compiled/gsdl-manuals"/>
72 <svn>
73 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="compiled/gsdl-manuals/manuals"/>
74 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="compiled/gsdl-manuals/shared"/>
75 </svn>
76 <javac
77 srcdir="compiled/gsdl-manuals/shared"
78 destdir="compiled/gsdl-manuals/shared"
79 debug="on">
80 <include name="*.java"/>
81 </javac>
82 <unzip src="compiled/gsdl-manuals/shared/fop.zip" dest="compiled/gsdl-manuals/shared"/>
83
84 <path id="documentation.compile.classpath">
85 <fileset dir="compiled/gsdl-manuals">
86 <include name="**/*.jar"/>
87 </fileset>
88 <pathelement path="compiled/gsdl-manuals/shared"/>
89 <pathelement path="compiled/gsdl-manuals/manuals"/>
90 </path>
91
92 <java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output="compiled/gsdl-manuals/manuals/xml-source/en/help-en.xml">
93 <arg value="compiled/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />
94 <arg value="compiled/gli/help/en/help.xml" />
95 <arg value="compiled" />
96 </java>
97
98 <chmod perm="a+x" file="compiled/gsdl-manuals/shared/fop/fop.sh"/>
99 <echo>Run generate-pdf.sh</echo>
100 <exec dir="compiled/gsdl-manuals/manuals" executable="/bin/sh">
101 <arg line="generate-pdf.sh u en" />
102 </exec>
103 </target>
104
105</project>
106
107
Note: See TracBrowser for help on using the repository browser.