source: release-kits/lirk3/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: 5.9 KB
RevLine 
[14982]1<?xml version="1.0" encoding="utf-8" ?>
2<project name="lirk3-compile" default="compile">
3
4 <target name="compile">
5
6 <!-- checkout -->
[16684]7 <antcall target="checkout-greenstone3" />
[14982]8
9 <!-- preparation -->
[16684]10 <antcall target="set-version-number-property" />
[16736]11 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-unix" inheritAll="false"/>
12
[16684]13 <antcall target="tweak-configure-scripts" />
[14982]14
15 <!-- update -->
[16736]16 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="update-unix" inheritAll="false"/>
[14982]17
18 <!-- configure -->
[16736]19 <antcall target="regenerate-configure"/>
20 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="configure-unix" inheritAll="false"/>
[16684]21 <antcall target="tweak-makefiles" />
[14982]22
23 <!-- build -->
[16736]24 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-unix" inheritAll="false"/>
[16684]25 <antcall target="linux-strip-execs" />
[14982]26
[17243]27 <!-- uninstaller -->
[17257]28 <antcall target="compile-uninstaller" /> <!-- from global-targets -->
[17243]29
[14982]30 <!-- documentation -->
[16684]31 <antcall target="prepare-documentation" />
[14982]32
33 </target>
34
35 <target name="checkout-greenstone3">
[16736]36 <svn>
[16684]37 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="greenstone3"/>
[16736]38 </svn>
[14982]39 </target>
40
41 <target name="set-version-number-property">
[16684]42 <rsr file="greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" />
[14982]43 </target>
44
45 <target name="tweak-configure-scripts">
[16684]46 <antcall target="mgpp-add-static" />
47 <antcall target="mg-add-static" />
48 <antcall target="gs2build-add-static" />
[14982]49 </target>
50
[16736]51 <target name="regenerate-configure">
[16684]52 <exec dir="greenstone3/gs2build" executable="autoconf" output="greenstone3/gs2build/configure">
53 <arg line="configure.in"/>
54 </exec>
55 <chmod file="greenstone3/gs2build/configure" perm="+x"/>
[14982]56 </target>
57
58 <target name="tweak-makefiles">
[16684]59 <antcall target="wv-add-static" />
60 <antcall target="xlhtml-add-static" />
61 <antcall target="ppthtml-add-static" />
62 <antcall target="rtftohtml-add-static" />
63 <antcall target="gdbm-add-static" />
[14982]64 </target>
65
66 <target name="linux-strip-execs">
[16684]67 <exec dir="greenstone3/gs2build/bin/linux" executable="find">
68 <arg line="! -name . -exec strip {} &#59;"/>
69 </exec>
[14982]70 </target>
71
72 <target name="prepare-documentation">
[16684]73 <mkdir dir="greenstone3/gsdl-manuals"/>
74 <svn>
75 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="greenstone3/gsdl-manuals/manuals"/>
76 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="greenstone3/gsdl-manuals/shared"/>
77 </svn>
78 <javac srcdir="greenstone3/gsdl-manuals/shared"
79 destdir="greenstone3/gsdl-manuals/shared"
80 debug="on">
81 <include name="*.java"/>
82 </javac>
83 <unzip src="greenstone3/gsdl-manuals/shared/fop.zip" dest="greenstone3/gsdl-manuals/shared"/>
[14982]84
[16684]85 <path id="documentation.compile.classpath">
86 <fileset dir="greenstone3/gsdl-manuals">
87 <include name="**/*.jar"/>
88 </fileset>
89 <pathelement path="greenstone3/gsdl-manuals/shared"/>
90 <pathelement path="greenstone3/gsdl-manuals/manuals"/>
91 </path>
[14982]92
[16684]93 <java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output="greenstone3/gsdl-manuals/manuals/xml-source/en/help-en.xml">
94 <arg value="greenstone3/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />
95 <arg value="greenstone3/gli/help/en/help.xml" />
96 <arg value="greenstone3" />
97 </java>
[14982]98
[16684]99 <chmod perm="a+x" file="greenstone3/gsdl-manuals/shared/fop/fop.sh"/>
100 <echo>Run generate-pdf.sh</echo>
101 <exec dir="greenstone3/gsdl-manuals/manuals" executable="/bin/sh">
102 <arg line="generate-pdf.sh u en" />
103 </exec>
[14982]104 </target>
105
106 <!--
107
108 third level targets
109
110 -->
111
112 <target name="mgpp-add-static">
[16684]113 <rsr file="greenstone3/gs2build/common-src/indexers/mgpp/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
114 <exec dir="greenstone3/gs2build/common-src/indexers/mgpp" executable="autoconf" output="greenstone3/gs2build/common-src/indexers/mgpp/configure">
115 <arg line="configure.in"/>
116 </exec>
[14982]117 </target>
[16684]118
[14982]119 <target name="mg-add-static">
[16684]120 <rsr file="greenstone3/gs2build/common-src/indexers/mg/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
121 <exec dir="greenstone3/gs2build/common-src/indexers/mg" executable="autoconf" output="greenstone3/gs2build/common-src/indexers/mg/configure">
122 <arg line="configure.in"/>
123 </exec>
[14982]124 </target>
[16684]125
[16622]126 <target name="gs2build-add-static">
[16684]127 <rsr file="greenstone3/gs2build/common-src/packages/configure" pattern="^ENVIRONMENT=&quot;&quot;$" replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
128 <rsr file="greenstone3/gs2build/build-src/packages/configure" pattern="^ENVIRONMENT=&quot;&quot;$" replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
129 <rsr file="greenstone3/gs2build/configure.in" pattern="^LDFLAGS=.*" replacement="LDFLAGS=-static" />
[14982]130 </target>
131
132 <target name="wv-add-static">
[16684]133 <rsr file="greenstone3/gs2build/build-src/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
[14982]134 </target>
[16684]135
[14982]136 <target name="xlhtml-add-static">
[16684]137 <rsr file="greenstone3/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
[14982]138 </target>
[16684]139
[14982]140 <target name="ppthtml-add-static">
[16684]141 <rsr file="greenstone3/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
[14982]142 </target>
[16684]143
[14982]144 <target name="rtftohtml-add-static">
[16684]145 <rsr file="greenstone3/gs2build/build-src/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml(.{2})EXEEXT(.{1})" replacement="-o rtftohtml$1EXEEXT$2 -static" />
[14982]146 </target>
[16684]147
[14982]148 <target name="gdbm-add-static">
[16684]149 <rsr file="greenstone3/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" />
[14982]150 </target>
151
152
153</project>
Note: See TracBrowser for help on using the repository browser.