Changeset 17898 for release-kits/lirk3/ant-scripts/compile.xml
- Timestamp:
- 2008-11-20T16:33:21+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/lirk3/ant-scripts/compile.xml
r17523 r17898 9 9 <!-- preparation --> 10 10 <antcall target="greenstone3-set-version-numbers"> 11 <param name="greenstone3basedir" value="${basedir}/ greenstone3"/>11 <param name="greenstone3basedir" value="${basedir}/compiled"/> 12 12 </antcall> 13 <ant dir=" greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-unix" inheritAll="false"/>13 <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-unix" inheritAll="false"/> 14 14 15 15 <antcall target="tweak-configure-scripts" /> 16 16 17 17 <!-- update --> 18 <ant dir=" greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="update-unix" inheritAll="false"/>18 <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="update-unix" inheritAll="false"/> 19 19 20 20 <!-- configure --> 21 21 <antcall target="regenerate-configure"/> 22 <ant dir=" greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="configure-unix" inheritAll="false"/>22 <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="configure-unix" inheritAll="false"/> 23 23 <antcall target="tweak-makefiles" /> 24 24 25 25 <!-- build --> 26 <ant dir=" greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-unix" inheritAll="false"/>26 <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-unix" inheritAll="false"/> 27 27 <antcall target="linux-strip-execs" /> 28 28 … … 37 37 <target name="checkout-greenstone3"> 38 38 <svn> 39 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath=" greenstone3"/>39 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="compiled"/> 40 40 </svn> 41 41 </target> … … 48 48 49 49 <target name="regenerate-configure"> 50 <exec dir=" greenstone3/gs2build" executable="autoconf" output="greenstone3/gs2build/configure">50 <exec dir="compiled/gs2build" executable="autoconf" output="compiled/gs2build/configure"> 51 51 <arg line="configure.in"/> 52 52 </exec> 53 <chmod file=" greenstone3/gs2build/configure" perm="+x"/>53 <chmod file="compiled/gs2build/configure" perm="+x"/> 54 54 </target> 55 55 … … 63 63 64 64 <target name="linux-strip-execs"> 65 <exec dir=" greenstone3/gs2build/bin/linux" executable="find">65 <exec dir="compiled/gs2build/bin/linux" executable="find"> 66 66 <arg line="! -name . -exec strip {} ;"/> 67 67 </exec> … … 69 69 70 70 <target name="prepare-documentation"> 71 <mkdir dir=" greenstone3/gsdl-manuals"/>71 <mkdir dir="compiled/gsdl-manuals"/> 72 72 <svn> 73 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath=" greenstone3/gsdl-manuals/manuals"/>74 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath=" greenstone3/gsdl-manuals/shared"/>73 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="compiled/gsdl-manuals/manuals"/> 74 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="compiled/gsdl-manuals/shared"/> 75 75 </svn> 76 <javac srcdir=" greenstone3/gsdl-manuals/shared"77 destdir=" greenstone3/gsdl-manuals/shared"76 <javac srcdir="compiled/gsdl-manuals/shared" 77 destdir="compiled/gsdl-manuals/shared" 78 78 debug="on"> 79 79 <include name="*.java"/> 80 80 </javac> 81 <unzip src=" greenstone3/gsdl-manuals/shared/fop.zip" dest="greenstone3/gsdl-manuals/shared"/>81 <unzip src="compiled/gsdl-manuals/shared/fop.zip" dest="compiled/gsdl-manuals/shared"/> 82 82 83 83 <path id="documentation.compile.classpath"> 84 <fileset dir=" greenstone3/gsdl-manuals">84 <fileset dir="compiled/gsdl-manuals"> 85 85 <include name="**/*.jar"/> 86 86 </fileset> 87 <pathelement path=" greenstone3/gsdl-manuals/shared"/>88 <pathelement path=" greenstone3/gsdl-manuals/manuals"/>87 <pathelement path="compiled/gsdl-manuals/shared"/> 88 <pathelement path="compiled/gsdl-manuals/manuals"/> 89 89 </path> 90 90 91 <java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output=" greenstone3/gsdl-manuals/manuals/xml-source/en/help-en.xml">92 <arg value=" greenstone3/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />93 <arg value=" greenstone3/gli/help/en/help.xml" />94 <arg value=" greenstone3" />91 <java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output="compiled/gsdl-manuals/manuals/xml-source/en/help-en.xml"> 92 <arg value="compiled/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" /> 93 <arg value="compiled/gli/help/en/help.xml" /> 94 <arg value="compiled" /> 95 95 </java> 96 96 97 <chmod perm="a+x" file=" greenstone3/gsdl-manuals/shared/fop/fop.sh"/>97 <chmod perm="a+x" file="compiled/gsdl-manuals/shared/fop/fop.sh"/> 98 98 <echo>Run generate-pdf.sh</echo> 99 <exec dir=" greenstone3/gsdl-manuals/manuals" executable="/bin/sh">99 <exec dir="compiled/gsdl-manuals/manuals" executable="/bin/sh"> 100 100 <arg line="generate-pdf.sh u en" /> 101 101 </exec> … … 109 109 110 110 <target name="mgpp-add-static"> 111 <rsr file=" greenstone3/gs2build/common-src/indexers/mgpp/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />112 <exec dir=" greenstone3/gs2build/common-src/indexers/mgpp" executable="autoconf" output="greenstone3/gs2build/common-src/indexers/mgpp/configure">111 <rsr file="compiled/gs2build/common-src/indexers/mgpp/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" /> 112 <exec dir="compiled/gs2build/common-src/indexers/mgpp" executable="autoconf" output="compiled/gs2build/common-src/indexers/mgpp/configure"> 113 113 <arg line="configure.in"/> 114 114 </exec> … … 116 116 117 117 <target name="mg-add-static"> 118 <rsr file=" greenstone3/gs2build/common-src/indexers/mg/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />119 <exec dir=" greenstone3/gs2build/common-src/indexers/mg" executable="autoconf" output="greenstone3/gs2build/common-src/indexers/mg/configure">118 <rsr file="compiled/gs2build/common-src/indexers/mg/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" /> 119 <exec dir="compiled/gs2build/common-src/indexers/mg" executable="autoconf" output="compiled/gs2build/common-src/indexers/mg/configure"> 120 120 <arg line="configure.in"/> 121 121 </exec> … … 123 123 124 124 <target name="gs2build-add-static"> 125 <rsr file=" greenstone3/gs2build/common-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" />126 <rsr file=" greenstone3/gs2build/build-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" />127 <rsr file=" greenstone3/gs2build/configure.in" pattern="^LDFLAGS=.*" replacement="LDFLAGS=-static" />125 <rsr file="compiled/gs2build/common-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" /> 126 <rsr file="compiled/gs2build/build-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" /> 127 <rsr file="compiled/gs2build/configure.in" pattern="^LDFLAGS=.*" replacement="LDFLAGS=-static" /> 128 128 </target> 129 129 130 130 <target name="wv-add-static"> 131 <rsr file=" greenstone3/gs2build/build-src/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />131 <rsr file="compiled/gs2build/build-src/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" /> 132 132 </target> 133 133 134 134 <target name="xlhtml-add-static"> 135 <rsr file=" greenstone3/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />135 <rsr file="compiled/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" /> 136 136 </target> 137 137 138 138 <target name="ppthtml-add-static"> 139 <rsr file=" greenstone3/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />139 <rsr file="compiled/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" /> 140 140 </target> 141 141 142 142 <target name="rtftohtml-add-static"> 143 <rsr file=" greenstone3/gs2build/build-src/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml(.{2})EXEEXT(.{1})" replacement="-o rtftohtml$1EXEEXT$2 -static" />143 <rsr file="compiled/gs2build/build-src/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml(.{2})EXEEXT(.{1})" replacement="-o rtftohtml$1EXEEXT$2 -static" /> 144 144 </target> 145 145 146 146 <target name="gdbm-add-static"> 147 <rsr file=" greenstone3/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" />147 <rsr file="compiled/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" /> 148 148 </target> 149 149
Note:
See TracChangeset
for help on using the changeset viewer.