source: release-kits/lirk2/ant-scripts/compile.xml@ 17257

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

added the uninstaller to all release kits

File size: 3.2 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="lirk2-compile" default="compile">
3
4 <target name="compile">
5
6 <!-- checkout -->
7 <antcall target="checkout-gsdl-gli" />
8
9 <!-- configure -->
10 <antcall target="add-static-to-configure-in"/>
11 <antcall target="set-environment-in-packages-configure"/>
12 <antcall target="run-configure"/>
13 <antcall target="makefiles-add-static"/>
14
15 <!-- make -->
16 <antcall target="run-make"/>
17 <antcall target="run-make-install"/>
18 <antcall target="copy-library-oai"/>
19 <antcall target="strip-execs"/>
20
21 <!-- uninstaller -->
22 <antcall target="compile-uninstaller" /> <!-- from global-targets -->
23
24 <!-- build collections -->
25 <antcall target="build-demo-collection" />
26
27 </target>
28
29 <target name="checkout-gsdl-gli">
30 <svn>
31 <checkout url="${svn.root}/gsdl/${branch.path}" destPath="${basedir}/gsdl"/>
32 <checkout url="${svn.root}/gli/${branch.path}" destPath="${basedir}/gsdl/gli"/>
33 </svn>
34 </target>
35
36 <target name="add-static-to-configure-in">
37 <rsr
38 file="${basedir}/gsdl/configure.in"
39 pattern="^LDFLAGS=.*$"
40 replacement="LDFLAGS=-static" />
41 <exec dir="${basedir}/gsdl" executable="autoconf" output="${basedir}/gsdl/configure"><arg value="configure.in"/></exec>
42 </target>
43
44 <target name="set-environment-in-packages-configure">
45 <rsr
46 file="${basedir}/gsdl/common-src/packages/configure"
47 pattern="^ENVIRONMENT=.*$"
48 replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
49 <rsr
50 file="${basedir}/gsdl/build-src/packages/configure"
51 pattern="^ENVIRONMENT=.*$"
52 replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
53 </target>
54
55 <target name="run-configure">
56 <exec dir="${basedir}/gsdl" executable="${basedir}/gsdl/configure">
57 <env key="LDFLAGS" value="-static"/>
58 </exec>
59 </target>
60
61 <target name="makefiles-add-static">
62 <rsr
63 file="${basedir}/gsdl/build-src/packages/wv/wv-gs/Makefile"
64 pattern="^LDFLAGS =.*$"
65 replacement="LDFLAGS = -static" />
66 <rsr
67 file="${basedir}/gsdl/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile"
68 pattern="^LDFLAGS =.*$"
69 replacement="LDFLAGS = -static" />
70 <rsr
71 file="${basedir}/gsdl/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile"
72 pattern="^LDFLAGS =.*$"
73 replacement="LDFLAGS = -static" />
74 <rsr
75 file="${basedir}/gsdl/build-src/packages/rtftohtml/rtftohtml_src/Makefile"
76 pattern="(-o rtftohtml.{2}EXEEXT.{1})"
77 replacement="$1 -static" />
78 </target>
79
80 <target name="run-make">
81 <exec dir="${basedir}/gsdl" executable="make"/>
82 </target>
83
84
85 <target name="run-make-install">
86 <exec dir="${basedir}/gsdl" executable="make"><arg value="install"/></exec>
87 </target>
88
89 <target name="copy-library-oai">
90 <exec executable="cp"><arg line="${basedir}/gsdl/cgi-bin/library ${basedir}/gsdl/bin/linux/library"/></exec>
91 <exec executable="cp"><arg line="${basedir}/gsdl/cgi-bin/oaiserver ${basedir}/gsdl/bin/linux/oaiserver"/></exec>
92 </target>
93
94 <target name="strip-execs">
95 <exec dir="${basedir}/gsdl/bin/linux" executable="find">
96 <arg line="! -name . -type f -maxdepth 1 -exec strip {} &#59;"/>
97 </exec>
98 </target>
99
100 <target name="build-demo-collection">
101 <exec dir="${basedir}/gsdl" executable="${lirk2.home}/resources/build-demo.sh"/>
102 </target>
103
104
105
106</project>
Note: See TracBrowser for help on using the repository browser.