[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 -->
|
---|
[17345] | 10 | <antcall target="greenstone3-set-version-numbers">
|
---|
[17898] | 11 | <param name="greenstone3basedir" value="${basedir}/compiled"/>
|
---|
[17345] | 12 | </antcall>
|
---|
[17898] | 13 | <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-unix" inheritAll="false"/>
|
---|
[16736] | 14 |
|
---|
[16684] | 15 | <antcall target="tweak-configure-scripts" />
|
---|
[14982] | 16 |
|
---|
| 17 | <!-- update -->
|
---|
[17898] | 18 | <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="update-unix" inheritAll="false"/>
|
---|
[14982] | 19 |
|
---|
| 20 | <!-- configure -->
|
---|
[16736] | 21 | <antcall target="regenerate-configure"/>
|
---|
[17898] | 22 | <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="configure-unix" inheritAll="false"/>
|
---|
[16684] | 23 | <antcall target="tweak-makefiles" />
|
---|
[14982] | 24 |
|
---|
| 25 | <!-- build -->
|
---|
[17898] | 26 | <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-unix" inheritAll="false"/>
|
---|
[16684] | 27 | <antcall target="linux-strip-execs" />
|
---|
[14982] | 28 |
|
---|
[17243] | 29 | <!-- uninstaller -->
|
---|
[17268] | 30 | <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
|
---|
[17243] | 31 |
|
---|
[14982] | 32 | <!-- documentation -->
|
---|
[16684] | 33 | <antcall target="prepare-documentation" />
|
---|
[14982] | 34 |
|
---|
| 35 | </target>
|
---|
| 36 |
|
---|
| 37 | <target name="checkout-greenstone3">
|
---|
[16736] | 38 | <svn>
|
---|
[17898] | 39 | <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="compiled"/>
|
---|
[16736] | 40 | </svn>
|
---|
[14982] | 41 | </target>
|
---|
| 42 |
|
---|
| 43 | <target name="tweak-configure-scripts">
|
---|
[16684] | 44 | <antcall target="mgpp-add-static" />
|
---|
| 45 | <antcall target="mg-add-static" />
|
---|
| 46 | <antcall target="gs2build-add-static" />
|
---|
[14982] | 47 | </target>
|
---|
| 48 |
|
---|
[16736] | 49 | <target name="regenerate-configure">
|
---|
[17898] | 50 | <exec dir="compiled/gs2build" executable="autoconf" output="compiled/gs2build/configure">
|
---|
[16684] | 51 | <arg line="configure.in"/>
|
---|
| 52 | </exec>
|
---|
[17898] | 53 | <chmod file="compiled/gs2build/configure" perm="+x"/>
|
---|
[14982] | 54 | </target>
|
---|
| 55 |
|
---|
| 56 | <target name="tweak-makefiles">
|
---|
[16684] | 57 | <antcall target="wv-add-static" />
|
---|
| 58 | <antcall target="xlhtml-add-static" />
|
---|
| 59 | <antcall target="ppthtml-add-static" />
|
---|
| 60 | <antcall target="rtftohtml-add-static" />
|
---|
| 61 | <antcall target="gdbm-add-static" />
|
---|
[14982] | 62 | </target>
|
---|
| 63 |
|
---|
| 64 | <target name="linux-strip-execs">
|
---|
[17898] | 65 | <exec dir="compiled/gs2build/bin/linux" executable="find">
|
---|
[16684] | 66 | <arg line="! -name . -exec strip {} ;"/>
|
---|
| 67 | </exec>
|
---|
[14982] | 68 | </target>
|
---|
| 69 |
|
---|
| 70 | <target name="prepare-documentation">
|
---|
[17898] | 71 | <mkdir dir="compiled/gsdl-manuals"/>
|
---|
[16684] | 72 | <svn>
|
---|
[17898] | 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"/>
|
---|
[16684] | 75 | </svn>
|
---|
[17898] | 76 | <javac srcdir="compiled/gsdl-manuals/shared"
|
---|
| 77 | destdir="compiled/gsdl-manuals/shared"
|
---|
[16684] | 78 | debug="on">
|
---|
| 79 | <include name="*.java"/>
|
---|
| 80 | </javac>
|
---|
[17898] | 81 | <unzip src="compiled/gsdl-manuals/shared/fop.zip" dest="compiled/gsdl-manuals/shared"/>
|
---|
[14982] | 82 |
|
---|
[16684] | 83 | <path id="documentation.compile.classpath">
|
---|
[17898] | 84 | <fileset dir="compiled/gsdl-manuals">
|
---|
[16684] | 85 | <include name="**/*.jar"/>
|
---|
| 86 | </fileset>
|
---|
[17898] | 87 | <pathelement path="compiled/gsdl-manuals/shared"/>
|
---|
| 88 | <pathelement path="compiled/gsdl-manuals/manuals"/>
|
---|
[16684] | 89 | </path>
|
---|
[14982] | 90 |
|
---|
[17898] | 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" />
|
---|
[16684] | 95 | </java>
|
---|
[14982] | 96 |
|
---|
[17898] | 97 | <chmod perm="a+x" file="compiled/gsdl-manuals/shared/fop/fop.sh"/>
|
---|
[16684] | 98 | <echo>Run generate-pdf.sh</echo>
|
---|
[17898] | 99 | <exec dir="compiled/gsdl-manuals/manuals" executable="/bin/sh">
|
---|
[16684] | 100 | <arg line="generate-pdf.sh u en" />
|
---|
| 101 | </exec>
|
---|
[14982] | 102 | </target>
|
---|
| 103 |
|
---|
| 104 | <!--
|
---|
| 105 |
|
---|
| 106 | third level targets
|
---|
| 107 |
|
---|
| 108 | -->
|
---|
| 109 |
|
---|
| 110 | <target name="mgpp-add-static">
|
---|
[17898] | 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">
|
---|
[16684] | 113 | <arg line="configure.in"/>
|
---|
| 114 | </exec>
|
---|
[14982] | 115 | </target>
|
---|
[16684] | 116 |
|
---|
[14982] | 117 | <target name="mg-add-static">
|
---|
[17898] | 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">
|
---|
[16684] | 120 | <arg line="configure.in"/>
|
---|
| 121 | </exec>
|
---|
[14982] | 122 | </target>
|
---|
[16684] | 123 |
|
---|
[16622] | 124 | <target name="gs2build-add-static">
|
---|
[17898] | 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" />
|
---|
[14982] | 128 | </target>
|
---|
| 129 |
|
---|
| 130 | <target name="wv-add-static">
|
---|
[17898] | 131 | <rsr file="compiled/gs2build/build-src/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
|
---|
[14982] | 132 | </target>
|
---|
[16684] | 133 |
|
---|
[14982] | 134 | <target name="xlhtml-add-static">
|
---|
[17898] | 135 | <rsr file="compiled/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
|
---|
[14982] | 136 | </target>
|
---|
[16684] | 137 |
|
---|
[14982] | 138 | <target name="ppthtml-add-static">
|
---|
[17898] | 139 | <rsr file="compiled/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
|
---|
[14982] | 140 | </target>
|
---|
[16684] | 141 |
|
---|
[14982] | 142 | <target name="rtftohtml-add-static">
|
---|
[17898] | 143 | <rsr file="compiled/gs2build/build-src/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml(.{2})EXEEXT(.{1})" replacement="-o rtftohtml$1EXEEXT$2 -static" />
|
---|
[14982] | 144 | </target>
|
---|
[16684] | 145 |
|
---|
[14982] | 146 | <target name="gdbm-add-static">
|
---|
[17898] | 147 | <rsr file="compiled/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" />
|
---|
[14982] | 148 | </target>
|
---|
| 149 |
|
---|
| 150 |
|
---|
| 151 | </project>
|
---|