source: release-kits/mark2/ant-scripts/compile.xml@ 17898

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

Standardised names of directories used in release kits

  • gsdl and greenstone3 -> compiled
  • distribution and distributions -> distributions
  • greenstone3 and web -> web

And, expect more specifically named properties files, e.g., lirk3-build.properties, wirk2-build.properties

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