root/release-kits/mark2/ant-scripts/compile.xml @ 17257

Revision 17257, 3.1 KB (checked in by oranfry, 11 years ago)

added the uninstaller to all release kits

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="mark2-compile" default="compile">
3
4    <target name="compile">
5
6        <!-- checkout -->
7        <antcall target="checkout-gsdl-gli" />
8       
9        <!-- configure -->
10        <antcall target="run-configure"/>
11        <antcall target="tweak-makefiles"/>
12
13        <!-- make -->
14        <antcall target="run-make"/>
15        <antcall target="run-make-install"/>
16        <antcall target="copy-library-oai"/>
17        <antcall target="strip-execs"/>
18
19        <!-- uninstaller -->
20        <antcall target="compile-uninstaller" /> <!-- from global-targets -->
21
22        <!-- build collections -->
23        <antcall target="build-demo-collection" />
24
25    </target>
26
27    <target name="checkout-gsdl-gli">
28        <svn javahl="false">
29            <checkout url="${svn.root}/gsdl/${branch.path}" destPath="${basedir}/gsdl"/>
30            <checkout url="${svn.root}/gli/${branch.path}" destPath="${basedir}/gsdl/gli"/>
31        </svn>
32    </target>
33
34    <target name="run-configure">
35        <exec dir="${basedir}/gsdl" executable="${basedir}/gsdl/configure">
36            <arg line="--with-gdbm=${mark2.home}/mac/${processor}/gdbm"/>
37        </exec>
38    </target>
39
40    <target name="tweak-makefiles">
41        <rsr file="${basedir}/gsdl/runtime-src/src/recpt/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$" replacement="$1${mark2.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
42        <rsr file="${basedir}/gsdl/runtime-src/src/oaiservr/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$" replacement="$1${mark2.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
43        <rsr file="${basedir}/gsdl/common-src/src/gdbmedit/db2txt/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$" replacement="$1${mark2.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
44        <rsr file="${basedir}/gsdl/common-src/src/gdbmedit/txt2db/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$" replacement="$1${mark2.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
45        <rsr file="${basedir}/gsdl/runtime-src/src/recpt/Makefile" pattern="^(LIBS =.*)-L(.)\(PACKAGES_DIR\)/expat/lib -lexpat(.*)$" replacement="$1$2(PACKAGES_DIR)/expat/lib/libexpat.a$3" />
46        <rsr file="${basedir}/gsdl/runtime-src/src/oaiservr/Makefile" pattern="^(LIBS =.*)-L(.)\(PACKAGES_DIR\)/expat/lib -lexpat(.*)$" replacement="$1$2(PACKAGES_DIR)/expat/lib/libexpat.a$3" />
47    </target>
48
49    <target name="run-make">
50        <exec dir="${basedir}/gsdl" executable="make"/>
51    </target>
52
53    <target name="run-make-install">
54        <exec dir="${basedir}/gsdl" executable="make"><arg value="install"/></exec>
55    </target>
56
57    <target name="copy-library-oai">
58        <exec executable="cp"><arg line="${basedir}/gsdl/cgi-bin/library ${basedir}/gsdl/bin/darwin/library"/></exec>
59        <exec executable="cp"><arg line="${basedir}/gsdl/cgi-bin/oaiserver ${basedir}/gsdl/bin/darwin/oaiserver"/></exec>
60    </target>
61
62    <target name="strip-execs">
63        <exec dir="${basedir}/gsdl/bin/darwin" executable="find">
64            <arg line=". ! -name . -type f -maxdepth 1 -exec strip {} &#59;"/>
65        </exec>
66    </target>
67
68    <target name="build-demo-collection">
69        <exec dir="${basedir}/gsdl" executable="${mark2.home}/resources/build-demo.sh"/>
70    </target>
71
72</project>
Note: See TracBrowser for help on using the browser.