Changeset 17898 for release-kits/mark3/ant-scripts/compile.xml
- Timestamp:
- 2008-11-20T16:33:21+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/mark3/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 13 <antcall target="set-gdbm-installed-path" /> 14 <ant target="prepare-unix" dir=" greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>14 <ant target="prepare-unix" dir="compiled" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/> 15 15 16 16 <!-- update --> 17 <ant target="update-unix" dir=" greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>17 <ant target="update-unix" dir="compiled" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/> 18 18 19 19 <!-- configure --> 20 <ant target="configure-unix" dir=" greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>20 <ant target="configure-unix" dir="compiled" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/> 21 21 <antcall target="tweak-makefiles" /> 22 22 23 23 <!-- build --> 24 <ant target="build-unix" dir=" greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>24 <ant target="build-unix" dir="compiled" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/> 25 25 <antcall target="linux-strip-execs" /> 26 26 … … 35 35 <target name="checkout-greenstone3"> 36 36 <svn javahl="false"> 37 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath=" greenstone3"/>37 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="compiled"/> 38 38 </svn> 39 39 </target> 40 40 41 41 <target name="set-version-number-property"> 42 <rsr file=" greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" />42 <rsr file="compiled/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" /> 43 43 </target> 44 44 45 45 <target name="set-gdbm-installed-path"> 46 <rsr file=" greenstone3/build.properties" pattern="(gdbm.installed.path=).*" replacement="$1${mark3.home}/mac/${processor}/gdbm"/>46 <rsr file="compiled/build.properties" pattern="(gdbm.installed.path=).*" replacement="$1${mark3.home}/mac/${processor}/gdbm"/> 47 47 </target> 48 48 49 49 <target name="tweak-makefiles"> 50 50 <rsr 51 file="${basedir}/ greenstone3/gs2build/common-src/src/gdbmedit/db2txt/Makefile"51 file="${basedir}/compiled/gs2build/common-src/src/gdbmedit/db2txt/Makefile" 52 52 pattern="^(LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$" 53 53 replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" /> 54 54 55 55 <rsr 56 file="${basedir}/ greenstone3/gs2build/common-src/src/gdbmedit/txt2db/Makefile"56 file="${basedir}/compiled/gs2build/common-src/src/gdbmedit/txt2db/Makefile" 57 57 pattern="^(LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$" 58 58 replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" /> 59 59 60 60 <rsr 61 file="${basedir}/ greenstone3/src/packages/javagdbm/jni/Makefile"61 file="${basedir}/compiled/src/packages/javagdbm/jni/Makefile" 62 62 pattern="^(GDBM_LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$" 63 63 replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" /> … … 65 65 66 66 <target name="linux-strip-execs"> 67 <exec dir=" greenstone3/gs2build/bin/darwin" executable="find">67 <exec dir="compiled/gs2build/bin/darwin" executable="find"> 68 68 <arg line=". ! -name . -exec strip {} ;"/> 69 69 </exec> … … 71 71 72 72 <target name="prepare-documentation"> 73 <mkdir dir=" greenstone3/gsdl-manuals"/>73 <mkdir dir="compiled/gsdl-manuals"/> 74 74 <svn javahl="false"> 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"/>75 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="compiled/gsdl-manuals/manuals"/> 76 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="compiled/gsdl-manuals/shared"/> 77 77 </svn> 78 <javac srcdir=" greenstone3/gsdl-manuals/shared"79 destdir=" greenstone3/gsdl-manuals/shared"78 <javac srcdir="compiled/gsdl-manuals/shared" 79 destdir="compiled/gsdl-manuals/shared" 80 80 debug="on"> 81 81 <include name="*.java"/> 82 82 </javac> 83 <unzip src=" greenstone3/gsdl-manuals/shared/fop.zip" dest="greenstone3/gsdl-manuals/shared"/>83 <unzip src="compiled/gsdl-manuals/shared/fop.zip" dest="compiled/gsdl-manuals/shared"/> 84 84 85 85 <path id="documentation.compile.classpath"> 86 <fileset dir=" greenstone3/gsdl-manuals">86 <fileset dir="compiled/gsdl-manuals"> 87 87 <include name="**/*.jar"/> 88 88 </fileset> 89 <pathelement path=" greenstone3/gsdl-manuals/shared"/>90 <pathelement path=" greenstone3/gsdl-manuals/manuals"/>89 <pathelement path="compiled/gsdl-manuals/shared"/> 90 <pathelement path="compiled/gsdl-manuals/manuals"/> 91 91 </path> 92 92 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" />93 <java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output="compiled/gsdl-manuals/manuals/xml-source/en/help-en.xml"> 94 <arg value="compiled/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" /> 95 <arg value="compiled/gli/help/en/help.xml" /> 96 <arg value="compiled" /> 97 97 </java> 98 98 99 <chmod perm="a+x" file=" greenstone3/gsdl-manuals/shared/fop/fop.sh"/>99 <chmod perm="a+x" file="compiled/gsdl-manuals/shared/fop/fop.sh"/> 100 100 <echo>Run generate-pdf.sh</echo> 101 <exec dir=" greenstone3/gsdl-manuals/manuals" executable="/bin/sh">101 <exec dir="compiled/gsdl-manuals/manuals" executable="/bin/sh"> 102 102 <arg line="generate-pdf.sh u en" /> 103 103 </exec>
Note:
See TracChangeset
for help on using the changeset viewer.