Changeset 17898 for release-kits/lirk3
- Timestamp:
- 2008-11-20T16:33:21+13:00 (15 years ago)
- Location:
- release-kits/lirk3/ant-scripts
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/lirk3/ant-scripts/build.xml
r17596 r17898 13 13 14 14 <!-- for the benefit of the shared scripts, set release-kit home --> 15 <property name="rk.name" value="lirk3"/> 15 16 <property name="rk.home" value="${lirk3.home}" /> 16 17 <property name="rk.os" value="linux" /> -
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 -
release-kits/lirk3/ant-scripts/create-components.xml
r17814 r17898 2 2 <project name="lirk3-create-components" default="create-components"> 3 3 4 <!-- create components from the distribution folder -->4 <!-- create components from the distributions folder --> 5 5 6 6 <!-- 1st level --> … … 42 42 43 43 <copy todir="components/tmp/core" overwrite="true"> 44 <fileset dir="distribution /greenstone3">44 <fileset dir="distributions/web"> 45 45 <include name="**/*"/> 46 46 … … 58 58 <exclude name="packages/tomcat"/> 59 59 <exclude name="packages/tomcat/**/*"/> 60 <exclude name="distributions/ greenstone3/gs2build/bin/linux/imagemagick"/>61 <exclude name="distributions/ greenstone3/gs2build/bin/linux/imagemagick/**/*"/>60 <exclude name="distributions/web/gs2build/bin/linux/imagemagick"/> 61 <exclude name="distributions/web/gs2build/bin/linux/imagemagick/**/*"/> 62 62 63 63 </fileset> … … 78 78 79 79 <copy todir="components/tmp/sourcecode" overwrite="true"> 80 <fileset dir="distribution /greenstone3">80 <fileset dir="distributions/web"> 81 81 <include name="src/**/*"/> 82 82 <include name="gs2build/common-src/**/*"/> … … 100 100 101 101 <copy todir="components/tmp/ant" overwrite="true"> 102 <fileset dir="distribution /greenstone3/packages">102 <fileset dir="distributions/web/packages"> 103 103 <include name="ant/**/*"/> 104 104 </fileset> … … 119 119 120 120 <copy todir="components/tmp/tomcat" overwrite="true"> 121 <fileset dir="distribution /greenstone3/packages">121 <fileset dir="distributions/web/packages"> 122 122 <include name="tomcat/**/*"/> 123 123 </fileset> … … 138 138 139 139 <copy todir="components/tmp/imagemagick" overwrite="true"> 140 <fileset dir="distribution /greenstone3/gs2build/bin/linux">140 <fileset dir="distributions/web/gs2build/bin/linux"> 141 141 <include name="imagemagick/**/*"/> 142 142 </fileset> -
release-kits/lirk3/ant-scripts/create-distribution.xml
r17816 r17898 6 6 <!-- create distribution --> 7 7 <antcall target="export-greenstone3-gli" /> 8 <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distribution /greenstone3"/></antcall>9 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution /greenstone3/gli"/></antcall>8 <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/web"/></antcall> 9 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli"/></antcall> 10 10 <antcall target="insert-user-manual"/> 11 11 <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from rk3-targets --> 12 12 13 <antcall target="copy-web-to-source -greenstone3" /> <!-- from gs3-targets-->13 <antcall target="copy-web-to-source" /> <!-- from init --> 14 14 15 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution /greenstone3" target="create-distribution-1" inheritAll="false">15 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" target="create-distribution-1" inheritAll="false"> 16 16 <property name="app.version" value="${version}"/> 17 17 <property name="branch.path" value="${branch.path}"/> 18 18 </ant> 19 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution /greenstone3" target="create-distribution-2" inheritAll="false">19 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" target="create-distribution-2" inheritAll="false"> 20 20 <property name="app.version" value="${version}"/> 21 21 <property name="branch.path" value="${branch.path}"/> 22 22 </ant> 23 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution /greenstone3" target="create-distribution-3" inheritAll="false">23 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" target="create-distribution-3" inheritAll="false"> 24 24 <property name="app.version" value="${version}"/> 25 25 <property name="branch.path" value="${branch.path}"/> … … 29 29 <antcall target="export-imagemagick-linux-binaries" /> 30 30 31 <antcall target="strip-svn-dirs"><param name="dir" value="distribution "/></antcall> <!-- from init -->31 <antcall target="strip-svn-dirs"><param name="dir" value="distributions"/></antcall> <!-- from init --> 32 32 33 33 </target> 34 34 35 35 <target name="export-greenstone3-gli"> 36 <mkdir dir="distribution "/>37 <delete dir="distribution /greenstone3"/>36 <mkdir dir="distributions"/> 37 <delete dir="distributions/web"/> 38 38 <svn> 39 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution /greenstone3"/>40 <export srcurl="${svn.root}/gli/${branch.path}" destPath="distribution /greenstone3/gli"/>39 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distributions/web"/> 40 <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli"/> 41 41 </svn> 42 42 </target> 43 43 44 44 <target name="export-imagemagick-linux-binaries"> 45 <delete dir="distribution /greenstone3/gs2build/bin/linux/imagemagick"/>45 <delete dir="distributions/web/gs2build/bin/linux/imagemagick"/> 46 46 <svn> 47 <export srcurl="${svn.root}/other-projects/trunk/linux-binaries/imagemagick" destPath="distribution /greenstone3/gs2build/bin/linux/imagemagick"/>47 <export srcurl="${svn.root}/other-projects/trunk/linux-binaries/imagemagick" destPath="distributions/web/gs2build/bin/linux/imagemagick"/> 48 48 </svn> 49 49 </target> 50 50 51 51 <target name="copy-over-build-xml"> 52 <move file="distribution /greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>52 <move file="distributions/web/modified-build.xml" tofile="distributions/web/build.xml"/> 53 53 </target> 54 54 55 55 <target name="insert-user-manual"> 56 <copy file=" greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>56 <copy file="compiled/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distributions/web/docs/manual/gs2_user_en.pdf"/> 57 57 </target> 58 58 59 59 <target name="insert-compiled-binaries"> 60 <delete dir="distribution /greenstone3/lib/jni"/>61 <exec executable="cp"><arg line="-r greenstone3/lib/jni distribution/greenstone3/lib"/></exec>60 <delete dir="distributions/web/lib/jni"/> 61 <exec executable="cp"><arg line="-r compiled/lib/jni distributions/web/lib"/></exec> 62 62 63 <delete dir="distribution /greenstone3/gs2build/bin/linux"/>64 <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/linux distribution/greenstone3/gs2build/bin"/></exec>63 <delete dir="distributions/web/gs2build/bin/linux"/> 64 <exec executable="cp"><arg line="-r compiled/gs2build/bin/linux distributions/web/gs2build/bin"/></exec> 65 65 66 <delete dir="distribution /greenstone3/gs2build/bin/java"/>67 <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/java distribution/greenstone3/gs2build/bin"/></exec>66 <delete dir="distributions/web/gs2build/bin/java"/> 67 <exec executable="cp"><arg line="-r compiled/gs2build/bin/java distributions/web/gs2build/bin"/></exec> 68 68 69 <exec executable="cp"><arg line=" greenstone3/bin/search4j distribution/greenstone3/bin"/></exec>69 <exec executable="cp"><arg line="compiled/bin/search4j distributions/web/bin"/></exec> 70 70 71 71 </target> -
release-kits/lirk3/ant-scripts/create-installer.xml
r17697 r17898 13 13 14 14 <copy todir="${basedir}/installer/classes" overwrite="true"> 15 <fileset file="${basedir}/distribution /greenstone3/LICENSE.txt"/>15 <fileset file="${basedir}/distributions/web/LICENSE.txt"/> 16 16 </copy> 17 17
Note:
See TracChangeset
for help on using the changeset viewer.