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

Last change on this file since 16807 was 16807, checked in by oranfry, 16 years ago

fixes to mark3

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