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

Last change on this file since 18840 was 18840, checked in by oranfry, 15 years ago

changes to get apache into the release and working

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