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

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

changes to lirk2 after ant hack cleaned up

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