Changeset 16684 for release-kits/lirk3/ant-scripts/compile.xml
- Timestamp:
- 2008-08-08T13:07:16+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/lirk3/ant-scripts/compile.xml
r16622 r16684 1 1 <?xml version="1.0" encoding="utf-8" ?> 2 2 <project name="lirk3-compile" default="compile"> 3 4 3 5 4 <target name="compile"> 6 5 7 6 <!-- checkout --> 8 <a ddressedcall target="checkout-greenstone3" />7 <antcall target="checkout-greenstone3" /> 9 8 10 9 <!-- preparation --> 11 <a ddressedcall target="set-version-number-property" />12 <a ddressedcall target="dist-prepare-unix" />13 <a ddressedcall target="tweak-configure-scripts" />10 <antcall target="set-version-number-property" /> 11 <antcall target="dist-prepare-unix" /> 12 <antcall target="tweak-configure-scripts" /> 14 13 15 14 <!-- update --> 16 <a ddressedcall target="dist-update-unix" />15 <antcall target="dist-update-unix" /> 17 16 18 17 <!-- configure --> 19 <a ddressedcall target="dist-configure-unix" />20 <a ddressedcall target="tweak-makefiles" />18 <antcall target="dist-configure-unix" /> 19 <antcall target="tweak-makefiles" /> 21 20 22 21 <!-- build --> 23 <addressedcall target="dist-build-unix" /> 24 <addressedcall target="fix-wget" /> 25 <addressedcall target="linux-strip-execs" /> 22 <antcall target="dist-build-unix" /> 23 <antcall target="linux-strip-execs" /> 26 24 27 25 <!-- documentation --> 28 <a ddressedcall target="prepare-documentation" />26 <antcall target="prepare-documentation" /> 29 27 30 28 </target> 31 29 32 30 <target name="checkout-greenstone3"> 33 <if><bool><istrue value="${execute}"/></bool> 34 <svn> 35 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="greenstone3"/> 36 </svn> 37 </if> 31 <svn> 32 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="greenstone3"/> 33 </svn> 38 34 </target> 39 35 40 36 <target name="set-version-number-property"> 41 <if><bool><istrue value="${execute}"/></bool> 42 <rsr file="greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" /> 43 </if> 37 <rsr file="greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" /> 44 38 </target> 45 39 46 40 <target name="dist-prepare-unix"> 47 <if><bool><istrue value="${execute}"/></bool> 48 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-unix" inheritAll="false"/> 49 </if> 41 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-unix" inheritAll="false"/> 50 42 </target> 51 43 <target name="tweak-configure-scripts"> 52 <a ddressedcall target="mgpp-add-static" />53 <a ddressedcall target="mg-add-static" />54 <a ddressedcall target="gs2build-add-static" />44 <antcall target="mgpp-add-static" /> 45 <antcall target="mg-add-static" /> 46 <antcall target="gs2build-add-static" /> 55 47 </target> 56 48 57 49 <target name="dist-update-unix"> 58 <if><bool><istrue value="${execute}"/></bool> 59 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="update-unix" inheritAll="false"/> 60 </if> 50 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="update-unix" inheritAll="false"/> 61 51 </target> 62 52 63 53 <target name="dist-configure-unix"> 64 65 <if><bool><istrue value="${execute}"/></bool> 66 <exec dir="greenstone3/gs2build" executable="autoconf" output="greenstone3/gs2build/configure"> 67 <arg line="configure.in"/> 68 </exec> 69 <chmod file="greenstone3/gs2build/configure" perm="+x"/> 70 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="configure-unix" inheritAll="false"/> 71 </if> 72 54 <exec dir="greenstone3/gs2build" executable="autoconf" output="greenstone3/gs2build/configure"> 55 <arg line="configure.in"/> 56 </exec> 57 <chmod file="greenstone3/gs2build/configure" perm="+x"/> 58 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="configure-unix" inheritAll="false"/> 73 59 </target> 74 60 75 61 <target name="tweak-makefiles"> 76 <a ddressedcall target="wv-add-static" />77 <a ddressedcall target="xlhtml-add-static" />78 <a ddressedcall target="ppthtml-add-static" />79 <a ddressedcall target="rtftohtml-add-static" />80 <a ddressedcall target="gdbm-add-static" />62 <antcall target="wv-add-static" /> 63 <antcall target="xlhtml-add-static" /> 64 <antcall target="ppthtml-add-static" /> 65 <antcall target="rtftohtml-add-static" /> 66 <antcall target="gdbm-add-static" /> 81 67 </target> 82 68 83 69 <target name="dist-build-unix"> 84 <if><bool><istrue value="${execute}"/></bool> 85 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-unix" inheritAll="false"/> 86 </if> 87 </target> 88 89 <target name="fix-wget"> 90 <if><bool><istrue value="${execute}"/></bool> 91 <!-- fix this !!! --> 92 <delete file="greenstone3/gs2build/packages/wget/wget-1.9/src/wget"/> 93 </if> 70 <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-unix" inheritAll="false"/> 94 71 </target> 95 72 96 73 <target name="linux-strip-execs"> 97 <if><bool><istrue value="${execute}"/></bool> 98 <exec dir="greenstone3/gs2build/bin/linux" executable="find"> 99 <arg line="! -name . -exec strip {} ;"/> 100 </exec> 101 </if> 74 <exec dir="greenstone3/gs2build/bin/linux" executable="find"> 75 <arg line="! -name . -exec strip {} ;"/> 76 </exec> 102 77 </target> 103 78 104 79 <target name="prepare-documentation"> 105 <if><bool><istrue value="${execute}"/></bool> 106 <mkdir dir="greenstone3/gsdl-manuals"/> 107 <svn> 108 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="greenstone3/gsdl-manuals/manuals"/> 109 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="greenstone3/gsdl-manuals/shared"/> 110 </svn> 111 <javac srcdir="greenstone3/gsdl-manuals/shared" 112 destdir="greenstone3/gsdl-manuals/shared" 113 debug="on"> 114 <include name="*.java"/> 115 </javac> 116 <unzip src="greenstone3/gsdl-manuals/shared/fop.zip" dest="greenstone3/gsdl-manuals/shared"/> 80 <mkdir dir="greenstone3/gsdl-manuals"/> 81 <svn> 82 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="greenstone3/gsdl-manuals/manuals"/> 83 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="greenstone3/gsdl-manuals/shared"/> 84 </svn> 85 <javac srcdir="greenstone3/gsdl-manuals/shared" 86 destdir="greenstone3/gsdl-manuals/shared" 87 debug="on"> 88 <include name="*.java"/> 89 </javac> 90 <unzip src="greenstone3/gsdl-manuals/shared/fop.zip" dest="greenstone3/gsdl-manuals/shared"/> 117 91 118 119 120 121 122 123 124 92 <path id="documentation.compile.classpath"> 93 <fileset dir="greenstone3/gsdl-manuals"> 94 <include name="**/*.jar"/> 95 </fileset> 96 <pathelement path="greenstone3/gsdl-manuals/shared"/> 97 <pathelement path="greenstone3/gsdl-manuals/manuals"/> 98 </path> 125 99 126 127 128 129 130 100 <java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output="greenstone3/gsdl-manuals/manuals/xml-source/en/help-en.xml"> 101 <arg value="greenstone3/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" /> 102 <arg value="greenstone3/gli/help/en/help.xml" /> 103 <arg value="greenstone3" /> 104 </java> 131 105 132 <chmod perm="a+x" file="greenstone3/gsdl-manuals/shared/fop/fop.sh"/> 133 <echo>Run generate-pdf.sh</echo> 134 <exec dir="greenstone3/gsdl-manuals/manuals" executable="/bin/sh"> 135 <arg line="generate-pdf.sh u en" /> 136 </exec> 137 </if> 106 <chmod perm="a+x" file="greenstone3/gsdl-manuals/shared/fop/fop.sh"/> 107 <echo>Run generate-pdf.sh</echo> 108 <exec dir="greenstone3/gsdl-manuals/manuals" executable="/bin/sh"> 109 <arg line="generate-pdf.sh u en" /> 110 </exec> 138 111 </target> 139 112 … … 145 118 146 119 <target name="mgpp-add-static"> 147 <if><bool><istrue value="${execute}"/></bool> 148 <rsr file="greenstone3/gs2build/common-src/indexers/mgpp/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" /> 149 <exec dir="greenstone3/gs2build/common-src/indexers/mgpp" executable="autoconf" output="greenstone3/gs2build/common-src/indexers/mgpp/configure"> 150 <arg line="configure.in"/> 151 </exec> 152 </if> 120 <rsr file="greenstone3/gs2build/common-src/indexers/mgpp/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" /> 121 <exec dir="greenstone3/gs2build/common-src/indexers/mgpp" executable="autoconf" output="greenstone3/gs2build/common-src/indexers/mgpp/configure"> 122 <arg line="configure.in"/> 123 </exec> 153 124 </target> 125 154 126 <target name="mg-add-static"> 155 <if><bool><istrue value="${execute}"/></bool> 156 <rsr file="greenstone3/gs2build/common-src/indexers/mg/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" /> 157 <exec dir="greenstone3/gs2build/common-src/indexers/mg" executable="autoconf" output="greenstone3/gs2build/common-src/indexers/mg/configure"> 158 <arg line="configure.in"/> 159 </exec> 160 </if> 127 <rsr file="greenstone3/gs2build/common-src/indexers/mg/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" /> 128 <exec dir="greenstone3/gs2build/common-src/indexers/mg" executable="autoconf" output="greenstone3/gs2build/common-src/indexers/mg/configure"> 129 <arg line="configure.in"/> 130 </exec> 161 131 </target> 132 162 133 <target name="gs2build-add-static"> 163 <if><bool><istrue value="${execute}"/></bool> 164 <rsr file="greenstone3/gs2build/common-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" /> 165 <rsr file="greenstone3/gs2build/build-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" /> 166 <rsr file="greenstone3/gs2build/configure.in" pattern="^LDFLAGS=.*" replacement="LDFLAGS=-static" /> 167 </if> 134 <rsr file="greenstone3/gs2build/common-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" /> 135 <rsr file="greenstone3/gs2build/build-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" /> 136 <rsr file="greenstone3/gs2build/configure.in" pattern="^LDFLAGS=.*" replacement="LDFLAGS=-static" /> 168 137 </target> 169 138 170 139 <target name="wv-add-static"> 171 <if><bool><istrue value="${execute}"/></bool> 172 <rsr file="greenstone3/gs2build/build-src/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" /> 173 </if> 140 <rsr file="greenstone3/gs2build/build-src/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" /> 174 141 </target> 142 175 143 <target name="xlhtml-add-static"> 176 <if><bool><istrue value="${execute}"/></bool> 177 <rsr file="greenstone3/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" /> 178 </if> 144 <rsr file="greenstone3/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" /> 179 145 </target> 146 180 147 <target name="ppthtml-add-static"> 181 <if><bool><istrue value="${execute}"/></bool> 182 <rsr file="greenstone3/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" /> 183 </if> 148 <rsr file="greenstone3/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" /> 184 149 </target> 150 185 151 <target name="rtftohtml-add-static"> 186 <if><bool><istrue value="${execute}"/></bool> 187 <rsr file="greenstone3/gs2build/build-src/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml(.{2})EXEEXT(.{1})" replacement="-o rtftohtml$1EXEEXT$2 -static" /> 188 </if> 152 <rsr file="greenstone3/gs2build/build-src/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml(.{2})EXEEXT(.{1})" replacement="-o rtftohtml$1EXEEXT$2 -static" /> 189 153 </target> 154 190 155 <target name="gdbm-add-static"> 191 <if><bool><istrue value="${execute}"/></bool> 192 <rsr file="greenstone3/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" /> 193 </if> 156 <rsr file="greenstone3/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" /> 194 157 </target> 195 158 196 159 197 198 160 </project>
Note:
See TracChangeset
for help on using the changeset viewer.