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
RevLine 
[14982]1<?xml version="1.0" encoding="utf-8" ?>
[15956]2<project name="lirk2-compile" default="compile">
[14982]3
4 <target name="compile">
5
6 <!-- checkout -->
[16739]7 <antcall target="checkout-gsdl-gli" />
[15956]8
[14982]9 <!-- configure -->
[16739]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"/>
[14982]14
[15956]15 <!-- make -->
[16739]16 <antcall target="run-make"/>
17 <antcall target="run-make-install"/>
18 <antcall target="copy-library-oai"/>
19 <antcall target="strip-execs"/>
[14982]20
[15956]21 <!-- build collections -->
[16739]22 <antcall target="build-demo-collection" />
[14982]23
24 </target>
25
[16459]26 <target name="checkout-gsdl-gli">
[16739]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>
[14982]31 </target>
32
[15956]33 <target name="add-static-to-configure-in">
[16739]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>
[14982]39 </target>
40
[15956]41 <target name="set-environment-in-packages-configure">
[16739]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;" />
[14982]50 </target>
51
[15956]52 <target name="run-configure">
[16739]53 <exec dir="${basedir}/gsdl" executable="${basedir}/gsdl/configure">
54 <env key="LDFLAGS" value="-static"/>
55 </exec>
[14982]56 </target>
57
[15956]58 <target name="makefiles-add-static">
[16739]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" />
[14982]75 </target>
76
[15956]77 <target name="run-make">
[16739]78 <exec dir="${basedir}/gsdl" executable="make"/>
[14982]79 </target>
80
81
[15956]82 <target name="run-make-install">
[16739]83 <exec dir="${basedir}/gsdl" executable="make"><arg value="install"/></exec>
[14982]84 </target>
85
[15956]86 <target name="copy-library-oai">
[16739]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>
[14982]89 </target>
90
[15956]91 <target name="strip-execs">
[16739]92 <exec dir="${basedir}/gsdl/bin/linux" executable="find">
93 <arg line="! -name . -type f -maxdepth 1 -exec strip {} &#59;"/>
94 </exec>
[14982]95 </target>
96
[15956]97 <target name="build-demo-collection">
[16739]98 <exec dir="${basedir}/gsdl" executable="${lirk2.home}/resources/build-demo.sh"/>
[14982]99 </target>
100
101
102
103</project>
Note: See TracBrowser for help on using the repository browser.