[14982] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
[16655] | 2 | <project name="mark3-compile" default="compile">
|
---|
[14982] | 3 |
|
---|
| 4 | <target name="compile">
|
---|
| 5 |
|
---|
| 6 | <!-- checkout -->
|
---|
[16744] | 7 | <antcall target="checkout-greenstone3" />
|
---|
[14982] | 8 |
|
---|
| 9 | <!-- preparation -->
|
---|
[16744] | 10 | <antcall target="set-version-number-property" />
|
---|
| 11 | <antcall target="set-gdbm-installed-path" />
|
---|
| 12 | <ant target="prepare-unix" dir="greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>
|
---|
| 13 |
|
---|
[14982] | 14 | <!-- update -->
|
---|
[16744] | 15 | <ant target="update-unix" dir="greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>
|
---|
[14982] | 16 |
|
---|
| 17 | <!-- configure -->
|
---|
[16744] | 18 | <ant target="configure-unix" dir="greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>
|
---|
| 19 | <antcall target="tweak-makefiles" />
|
---|
[14982] | 20 |
|
---|
| 21 | <!-- build -->
|
---|
[16744] | 22 | <ant target="build-unix" dir="greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false"/>
|
---|
| 23 | <antcall target="linux-strip-execs" />
|
---|
[17268] | 24 |
|
---|
| 25 | <!-- search4j -->
|
---|
[16807] | 26 | <antcall target="compile-search4j" /> <!-- from rk3-targets -->
|
---|
[14982] | 27 |
|
---|
[17257] | 28 | <!-- uninstaller -->
|
---|
[17268] | 29 | <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
|
---|
[17257] | 30 |
|
---|
[14982] | 31 | <!-- documentation -->
|
---|
[16744] | 32 | <antcall target="prepare-documentation" />
|
---|
[14982] | 33 |
|
---|
| 34 | </target>
|
---|
| 35 |
|
---|
| 36 | <target name="checkout-greenstone3">
|
---|
[17078] | 37 | <svn javahl="false">
|
---|
[16744] | 38 | <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="greenstone3"/>
|
---|
| 39 | </svn>
|
---|
[14982] | 40 | </target>
|
---|
| 41 |
|
---|
| 42 | <target name="set-version-number-property">
|
---|
[16744] | 43 | <rsr file="greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" />
|
---|
[14982] | 44 | </target>
|
---|
| 45 |
|
---|
[16655] | 46 | <target name="set-gdbm-installed-path">
|
---|
[16744] | 47 | <rsr file="greenstone3/build.properties" pattern="(gdbm.installed.path=).*" replacement="$1${mark3.home}/mac/${processor}/gdbm"/>
|
---|
[16655] | 48 | </target>
|
---|
| 49 |
|
---|
[16744] | 50 | <target name="tweak-makefiles">
|
---|
[16807] | 51 | <rsr
|
---|
[16744] | 52 | file="${basedir}/greenstone3/gs2build/common-src/src/gdbmedit/db2txt/Makefile"
|
---|
| 53 | pattern="^(LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$"
|
---|
| 54 | replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
|
---|
[16655] | 55 |
|
---|
[16744] | 56 | <rsr
|
---|
| 57 | file="${basedir}/greenstone3/gs2build/common-src/src/gdbmedit/txt2db/Makefile"
|
---|
| 58 | pattern="^(LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$"
|
---|
| 59 | replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
|
---|
[16655] | 60 |
|
---|
[16744] | 61 | <rsr
|
---|
| 62 | file="${basedir}/greenstone3/src/packages/javagdbm/jni/Makefile"
|
---|
| 63 | pattern="^(GDBM_LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$"
|
---|
| 64 | replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
|
---|
[14982] | 65 | </target>
|
---|
| 66 |
|
---|
| 67 | <target name="linux-strip-execs">
|
---|
[16744] | 68 | <exec dir="greenstone3/gs2build/bin/darwin" executable="find">
|
---|
| 69 | <arg line=". ! -name . -exec strip {} ;"/>
|
---|
| 70 | </exec>
|
---|
[14982] | 71 | </target>
|
---|
| 72 |
|
---|
| 73 | <target name="prepare-documentation">
|
---|
[16744] | 74 | <mkdir dir="greenstone3/gsdl-manuals"/>
|
---|
[17078] | 75 | <svn javahl="false">
|
---|
[16744] | 76 | <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="greenstone3/gsdl-manuals/manuals"/>
|
---|
| 77 | <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="greenstone3/gsdl-manuals/shared"/>
|
---|
| 78 | </svn>
|
---|
| 79 | <javac srcdir="greenstone3/gsdl-manuals/shared"
|
---|
| 80 | destdir="greenstone3/gsdl-manuals/shared"
|
---|
| 81 | debug="on">
|
---|
| 82 | <include name="*.java"/>
|
---|
| 83 | </javac>
|
---|
| 84 | <unzip src="greenstone3/gsdl-manuals/shared/fop.zip" dest="greenstone3/gsdl-manuals/shared"/>
|
---|
[14982] | 85 |
|
---|
[16744] | 86 | <path id="documentation.compile.classpath">
|
---|
| 87 | <fileset dir="greenstone3/gsdl-manuals">
|
---|
| 88 | <include name="**/*.jar"/>
|
---|
| 89 | </fileset>
|
---|
| 90 | <pathelement path="greenstone3/gsdl-manuals/shared"/>
|
---|
| 91 | <pathelement path="greenstone3/gsdl-manuals/manuals"/>
|
---|
| 92 | </path>
|
---|
[14982] | 93 |
|
---|
[16744] | 94 | <java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output="greenstone3/gsdl-manuals/manuals/xml-source/en/help-en.xml">
|
---|
| 95 | <arg value="greenstone3/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />
|
---|
| 96 | <arg value="greenstone3/gli/help/en/help.xml" />
|
---|
| 97 | <arg value="greenstone3" />
|
---|
| 98 | </java>
|
---|
[14982] | 99 |
|
---|
[16744] | 100 | <chmod perm="a+x" file="greenstone3/gsdl-manuals/shared/fop/fop.sh"/>
|
---|
| 101 | <echo>Run generate-pdf.sh</echo>
|
---|
| 102 | <exec dir="greenstone3/gsdl-manuals/manuals" executable="/bin/sh">
|
---|
| 103 | <arg line="generate-pdf.sh u en" />
|
---|
| 104 | </exec>
|
---|
[14982] | 105 | </target>
|
---|
| 106 |
|
---|
[16655] | 107 | </project>
|
---|
[14982] | 108 |
|
---|