Changeset 15980 for release-kits/lirk2/ant-scripts
- Timestamp:
- 2008-06-13T12:38:22+12:00 (16 years ago)
- Location:
- release-kits/lirk2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/lirk2
- Property svn:externals
-
old new 1 1 lib http://svn.greenstone.org/release-kits/shared/lib 2 2 search4j http://svn.greenstone.org/release-kits/shared/search4j 3 linux http://svn.greenstone.org/release-kits/shared/linux 3 4
-
- Property svn:externals
-
release-kits/lirk2/ant-scripts/build.xml
r15956 r15980 15 15 <import file="compile.xml"/> 16 16 <import file="create-distribution.xml"/> 17 <!--18 17 <import file="create-installer.xml"/> 19 18 <import file="wrap.xml"/> 20 -->21 19 22 20 <target name="lirk2" depends="init"> 23 21 <addressedcall target="compile"/> 24 22 <addressedcall target="create-distribution"/> 25 <!--26 23 <addressedcall target="create-installer"/> 27 24 <addressedcall target="wrap"/> 28 -->29 25 </target> 30 26 -
release-kits/lirk2/ant-scripts/create-distribution.xml
r15957 r15980 15 15 <addressedcall target="export-gsdl-gli-indexers" /> 16 16 <addressedcall target="dist-set-version" /> 17 <addressedcall target="drop-in-binaries" /> 18 <addressedcall target="drop-in-demo-collection" /> 17 19 <addressedcall target="compile-gli" /> 18 20 <addressedcall target="create-gli-client-zip" /> … … 23 25 <if><bool><istrue value="${execute}"/></bool> 24 26 25 <mkdir dir="distribution "/>26 <delete dir="distribution /gsdl"/>27 <mkdir dir="distributions"/> 28 <delete dir="distributions/web"/> 27 29 <svn> 28 <export srcurl="${svn.root}/gsdl/${branch.path}" destPath="distribution /gsdl"/>30 <export srcurl="${svn.root}/gsdl/${branch.path}" destPath="distributions/web"/> 29 31 </svn> 30 32 31 33 <svn> 32 <export srcurl="${svn.root}/gli/${branch.path}" destPath="distribution /gsdl/gli"/>34 <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli"/> 33 35 </svn> 34 36 35 37 <svn> 36 <export srcurl="${svn.root}/indexers/${branch.path}" destPath="distribution /gsdl/indexers"/>38 <export srcurl="${svn.root}/indexers/${branch.path}" destPath="distributions/web/indexers"/> 37 39 </svn> 38 40 … … 44 46 45 47 <echo level="info">Setting version in src/lib/gsdlconf.h</echo> 46 <rsr file="${basedir}/ gsdl/src/lib/gsdlconf.h" pattern="(#define GSDL_VERSION) ".*"" replacement="$1 "${version}"" />48 <rsr file="${basedir}/distributions/web/src/lib/gsdlconf.h" pattern="(#define GSDL_VERSION) ".*"" replacement="$1 "${version}"" /> 47 49 48 50 <echo level="info">Setting version in Install.sh</echo> 49 <rsr file="${basedir}/ gsdl/Install.sh" pattern="(echo "Version: ).*(" .*)" replacement="$1${version}$2" />51 <rsr file="${basedir}/distributions/web/Install.sh" pattern="(echo "Version: ).*(" .*)" replacement="$1${version}$2" /> 50 52 51 53 <echo level="info">Setting version in etc/VERSION</echo> 52 <rsr file="${basedir}/ gsdl/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}" />54 <rsr file="${basedir}/distributions/web/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}" /> 53 55 54 56 </if> 55 57 </target> 58 59 <target name="drop-in-binaries"> 60 <if><bool><istrue value="${execute}"/></bool> 61 <echo level="info">Dropping compiled binaries into distribution</echo> 62 <delete dir="distributions/web/bin/linux" /> 63 <exec dir="${basedir}" executable="cp"><arg line="-r gsdl/bin/linux distributions/web/bin"/></exec> 64 <exec dir="${basedir}" executable="cp"><arg line="gsdl/cgi-bin/library distributions/web/cgi-bin"/></exec> 65 <exec dir="${basedir}" executable="cp"><arg line="gsdl/cgi-bin/oaiservr distributions/web/cgi-bin"/></exec> 66 </if> 67 </target> 68 69 <target name="drop-in-demo-collection"> 70 <if><bool><istrue value="${execute}"/></bool> 71 <echo level="info">Dropping compiled binaries into distribution</echo> 72 <delete dir="distributions/web/collect/demo" /> 73 <exec dir="${basedir}" executable="cp"><arg line="-r gsdl/collect/demo distributions/web/collect"/></exec> 74 </if> 75 </target> 76 56 77 57 78 <target name="compile-gli"> … … 59 80 60 81 <echo>Compiling gli...</echo> 61 <exec dir="${basedir}/distribution /gsdl/gli" executable="${basedir}/distribution/gsdl/gli/makegli.sh"/>82 <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makegli.sh"/> 62 83 63 84 <echo>Creating jar...</echo> 64 <exec dir="${basedir}/distribution /gsdl/gli" executable="${basedir}/distribution/gsdl/gli/makejar.sh"/>85 <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makejar.sh"/> 65 86 66 87 <echo>Cleaning up intermediate files...</echo> 67 <delete dir="${basedir}/distribution /gsdl/gli/jar"/>68 <delete dir="${basedir}/distribution /gsdl/gli/classes/org"/>88 <delete dir="${basedir}/distributions/web/gli/jar"/> 89 <delete dir="${basedir}/distributions/web/gli/classes/org"/> 69 90 70 91 <echo>Putting gli server jar in a better place</echo> 71 <exec dir="${basedir}/distribution /gsdl" executable="mv" failonerror="true">92 <exec dir="${basedir}/distributions/web" executable="mv" failonerror="true"> 72 93 <arg line="gli/GLIServer.jar bin/java" /> 73 94 </exec> … … 104 125 105 126 <echo level="info">Changing Install.sh to web release</echo> 106 <rsr file="${basedir}/distribution/gsdl/Install.sh" pattern="^(iscdrom=).*" replacement="$1"no"" /> 127 <rsr file="${basedir}/distributions/web/Install.sh" pattern="^(iscdrom=).*" replacement="$1"no"" /> 128 129 <echo level="info">Putting the COPYING file into distribution</echo> 130 <copy file="${lirk2.home}/resources/COPYING" tofile="${basedir}/distributions/web/COPYING" /> 131 132 <echo level="info">Removing signed gatherer</echo> 133 <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" /> 134 135 <echo level="info">Removing some unneeded stuff</echo> 136 <delete file="${basedir}/distributions/web/gli/.greenstonestore" /> 137 <delete file="${basedir}/distributions/web/gli/gli4gs3.sh" /> 138 <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.bat"/></delete> 139 <delete><fileset dir="${basedir}/distributions/web" includes="*.bat"/></delete> 107 140 108 141 </if> 109 142 </target> 110 143 111 112 113 114 115 144 </project> -
release-kits/lirk2/ant-scripts/create-installer.xml
r15304 r15980 9 9 --> 10 10 11 <project name="lirk 3-create-installer" default="create-installer">11 <project name="lirk2-create-installer" default="create-installer"> 12 12 13 13 <target name="create-installer"> 14 14 <addressedcall target="setup-for-installer-creation"/> 15 15 <addressedcall target="compile-installer"/> 16 <addressedcall target="clean-up-after-installer-creation"/>17 16 </target> 18 17 … … 20 19 <if><bool><istrue value="${execute}"/></bool> 21 20 22 <echo>Project Path: ${basedir}/distribution/g reenstone3</echo>21 <echo>Project Path: ${basedir}/distribution/gsdl</echo> 23 22 <mkdir dir="${basedir}/installer"/> 24 <copy todir="${basedir}/installer" file="${lirk 3.home}/installer/antinstall-config.xml"/>25 <copy todir="${basedir}/installer" file="${lirk 3.home}/installer/build.xml"/>26 <copy todir="${basedir}/installer/cp" ><fileset dir="${lirk3.home}/installer/cp"/></copy>23 <copy todir="${basedir}/installer" file="${lirk2.home}/installer/antinstall-config.xml" overwrite="true"/> 24 <copy todir="${basedir}/installer" file="${lirk2.home}/installer/build.xml" overwrite="true"/> 25 <copy todir="${basedir}/installer/cp" overwrite="true"><fileset dir="${lirk2.home}/installer/cp"/></copy> 27 26 28 27 <!-- put the concrete values of things in the config --> 29 28 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@version@" replacement="${version}"/> 29 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@component.size.java@" replacement="${component.size.java}"/> 30 30 <rsr file="${basedir}/installer/build.xml" pattern="@java.min.version@" replacement="${java.min.version}"/> 31 31 <rsr file="${basedir}/installer/build.xml" pattern="@java.extracted@" replacement="${java.extracted}"/> 32 33 32 34 33 <!-- put the concrete values of things in the text --> … … 37 36 <rsr file="${basedir}/installer/cp/resources/LanguagePack.properties" pattern="@java.min.version@" replacement="${java.min.version}"/> 38 37 <rsr file="${basedir}/installer/cp/resources/LanguagePack.properties" pattern="@bundled.version.java@" replacement="${bundled.version.java}"/> 39 <rsr file="${basedir}/installer/cp/resources/LanguagePack.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>40 <rsr file="${basedir}/installer/cp/resources/LanguagePack.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>41 38 42 39 <!-- chinese --> 40 <!-- 43 41 <rsr file="${basedir}/installer/cp/resources/LanguagePack_zh_CN.properties" pattern="@version@" replacement="${version}"/> 44 42 <rsr file="${basedir}/installer/cp/resources/LanguagePack_zh_CN.properties" pattern="@java.min.version@" replacement="${java.min.version}"/> … … 46 44 <rsr file="${basedir}/installer/cp/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/> 47 45 <rsr file="${basedir}/installer/cp/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/> 46 --> 47 48 48 49 49 </if> … … 53 53 <if><bool><istrue value="${execute}"/></bool> 54 54 55 <installer file="${basedir}/installer/greenstone3-with-java.jar" 55 <!-- create the installer with java --> 56 <installer file="${basedir}/installer/gsdl-${version}-linux-with-java.jar" 56 57 compress="true" 57 58 extractType="NonExtractor" 58 59 installConfig="${basedir}/installer/antinstall-config.xml" 59 60 buildFile="${basedir}/installer/build.xml" 60 antInstallLib="${lirk 3.home}/bin/ant-installer/lib"61 antLib="${lirk 3.home}/bin/ant-installer/antlib"61 antInstallLib="${lirk2.home}/bin/ant-installer/lib" 62 antLib="${lirk2.home}/bin/ant-installer/antlib" 62 63 validateConfig="true" 63 64 failOnError="false" 64 65 icons="bluecurve"> 65 66 66 <!-- copy all the important files into the archive to be extracted for install -->67 67 <zipfileset dir="${basedir}/installer/cp" includes="resources/*"/> 68 <zipfileset dir="${lirk3.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset> 69 70 71 <zipfileset dir="${basedir}/distribution/greenstone3" includes="*"/> 72 <zipfileset dir="${basedir}/distribution/greenstone3/bin" prefix="bin"><include name="**/*"/></zipfileset> 73 <zipfileset dir="${basedir}/distribution/greenstone3/docs" prefix="docs"><include name="**/*"/></zipfileset> 74 <zipfileset dir="${basedir}/distribution/greenstone3/gli" prefix="gli"><include name="**/*"/></zipfileset> 75 <zipfileset dir="${basedir}/distribution/greenstone3/gs2build" prefix="gs2build"><include name="**/*"/></zipfileset> 76 <zipfileset dir="${basedir}/distribution/greenstone3/lib" prefix="lib"><include name="**/*"/></zipfileset> 77 <zipfileset dir="${basedir}/distribution/greenstone3/web" prefix="web"><include name="**/*"/></zipfileset> 78 <zipfileset dir="${basedir}/distribution/greenstone3/packages" prefix="packages"><include name="**/*"/></zipfileset> 79 <zipfileset dir="${basedir}/distribution/greenstone3/resources" prefix="resources"><include name="**/*"/></zipfileset> 80 <zipfileset dir="${basedir}/distribution/greenstone3/src" prefix="src"><include name="**/*"/></zipfileset> 68 <zipfileset dir="${lirk2.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset> 69 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/> 81 70 82 71 </installer> … … 85 74 <rsr file="${basedir}/installer/antinstall-config.xml" pattern=".*<!-- bundled java only -->" replacement=""/> 86 75 87 <installer file="${basedir}/installer/greenstone3.jar" 76 <!-- create the installer without java --> 77 <installer file="${basedir}/installer/gsdl-${version}-linux.jar" 88 78 compress="true" 89 79 extractType="NonExtractor" 90 80 installConfig="${basedir}/installer/antinstall-config.xml" 91 81 buildFile="${basedir}/installer/build.xml" 92 antInstallLib="${lirk 3.home}/bin/ant-installer/lib"93 antLib="${lirk 3.home}/bin/ant-installer/antlib"82 antInstallLib="${lirk2.home}/bin/ant-installer/lib" 83 antLib="${lirk2.home}/bin/ant-installer/antlib" 94 84 validateConfig="true" 85 failOnError="false" 95 86 icons="bluecurve"> 96 87 97 <!-- copy all the important files into the archive to be extracted for install -->98 88 <zipfileset dir="${basedir}/installer/cp" includes="resources/*"/> 99 <zipfileset dir="${lirk3.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset> 89 <zipfileset dir="${lirk2.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset> 90 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/> 100 91 101 <zipfileset dir="${basedir}/distribution/greenstone3" includes="*"/>102 <zipfileset dir="${basedir}/distribution/greenstone3/bin" prefix="bin"><include name="**/*"/></zipfileset>103 <zipfileset dir="${basedir}/distribution/greenstone3/docs" prefix="docs"><include name="**/*"/></zipfileset>104 <zipfileset dir="${basedir}/distribution/greenstone3/gli" prefix="gli"><include name="**/*"/></zipfileset>105 <zipfileset dir="${basedir}/distribution/greenstone3/gs2build" prefix="gs2build"><include name="**/*"/></zipfileset>106 <zipfileset dir="${basedir}/distribution/greenstone3/lib" prefix="lib"><include name="**/*"/></zipfileset>107 <zipfileset dir="${basedir}/distribution/greenstone3/web" prefix="web"><include name="**/*"/></zipfileset>108 <zipfileset dir="${basedir}/distribution/greenstone3/packages" prefix="packages"><include name="**/*"/></zipfileset>109 <zipfileset dir="${basedir}/distribution/greenstone3/resources" prefix="resources"><include name="**/*"/></zipfileset>110 <zipfileset dir="${basedir}/distribution/greenstone3/src" prefix="src"><include name="**/*"/></zipfileset>111 92 </installer> 112 93 … … 114 95 </target> 115 96 116 <target name="clean-up-after-installer-creation">117 <if><bool><istrue value="${execute}"/></bool>118 <delete file="${basedir}/installer/antinstall-config.xml"/>119 <delete file="${basedir}/installer/build.xml"/>120 </if>121 </target>122 123 124 97 </project> -
release-kits/lirk2/ant-scripts/init.xml
r15956 r15980 51 51 <!-- the version numbers of bundled things --> 52 52 <property name="bundled.version.java" value="1.6.0_05"/> 53 <property name="bundled.version.tomcat" value="5.5.25"/>54 <property name="bundled.version.ant" value="1.6.5"/>55 53 56 54 <!--<property name="java.installer" value="jre_6u5_linux_i586"/>--> -
release-kits/lirk2/ant-scripts/wrap.xml
r15205 r15980 9 9 --> 10 10 11 <project name="lirk 3-wrap" default="wrap">11 <project name="lirk2-wrap" default="wrap"> 12 12 13 13 <target name="wrap"> 14 14 <addressedcall target="setup-for-wrapping"/> 15 15 <addressedcall target="compile-wrapper"/> 16 <addressedcall target="clean-up-after-wrapping"/>17 16 </target> 18 17 … … 23 22 <!-- create and setup the build directory --> 24 23 <mkdir dir="${basedir}/wrapped-installer/build"/> 25 <copy todir="${basedir}/wrapped-installer/build" file="${lirk 3.home}/wrapper/mywrapper.c"/>24 <copy todir="${basedir}/wrapped-installer/build" file="${lirk2.home}/linux/wrapper.cpp"/> 26 25 27 26 <!-- copy bundled files --> 28 <copy todir="${basedir}/wrapped-installer/build" file="${lirk 3.home}/search4j/search4j"/>29 <copy todir="${basedir}/wrapped-installer/build" file="${lirk 3.home}/wrapper/${java.installer}"/>30 <copy to dir="${basedir}/wrapped-installer/build" file="${basedir}/installer/greenstone3.jar"/>31 <copy to dir="${basedir}/wrapped-installer/build" file="${basedir}/installer/greenstone3-with-java.jar"/>27 <copy todir="${basedir}/wrapped-installer/build" file="${lirk2.home}/search4j/search4j"/> 28 <copy todir="${basedir}/wrapped-installer/build" file="${lirk2.home}/wrapper/${java.installer}"/> 29 <copy tofile="${basedir}/wrapped-installer/build/greenstone2.jar" file="${basedir}/installer/gsdl-${version}-linux.jar"/> 30 <copy tofile="${basedir}/wrapped-installer/build/greenstone2-with-java.jar" file="${basedir}/installer/gsdl-${version}-linux-with-java.jar"/> 32 31 33 <!-- substitute the real java installer filename and min version into various files -->34 <rsr file="${basedir}/wrapped-installer/build/ mywrapper.c" pattern="@java.installer@" replacement="${java.installer}"/>35 <rsr file="${basedir}/wrapped-installer/build/ mywrapper.c" pattern="@java.extracted@" replacement="${java.extracted}"/>36 <rsr file="${basedir}/wrapped-installer/build/ mywrapper.c" pattern="@java.min.version@" replacement="${java.min.version}"/>32 <!-- substitute in real values --> 33 <rsr file="${basedir}/wrapped-installer/build/wrapper.cpp" pattern="@java.installer@" replacement="${java.installer}"/> 34 <rsr file="${basedir}/wrapped-installer/build/wrapper.cpp" pattern="@java.extracted@" replacement="${java.extracted}"/> 35 <rsr file="${basedir}/wrapped-installer/build/wrapper.cpp" pattern="@java.min.version@" replacement="${java.min.version}"/> 37 36 38 37 </if> … … 44 43 <echo level="info">create an object file (extension .o) for each file to bundle</echo> 45 44 <exec executable="/usr/bin/objcopy" dir="${basedir}/wrapped-installer/build"> 46 <arg line="-I binary -O elf32-i386 -B i386 --redefine-sym _binary_greenstone 3_jar_start=greenstone3jar --readonly-text greenstone3.jar greenstone3.jar.o"/>45 <arg line="-I binary -O elf32-i386 -B i386 --redefine-sym _binary_greenstone2_jar_start=greenstone2jar --readonly-text greenstone2.jar greenstone2.jar.o"/> 47 46 </exec> 48 47 <exec executable="/usr/bin/objcopy" dir="${basedir}/wrapped-installer/build"> 49 <arg line="-I binary -O elf32-i386 -B i386 --redefine-sym _binary_greenstone 3_with_java_jar_start=greenstone3jar --readonly-text greenstone3-with-java.jar greenstone3-with-java.jar.o"/>48 <arg line="-I binary -O elf32-i386 -B i386 --redefine-sym _binary_greenstone2_with_java_jar_start=greenstone2jar --readonly-text greenstone2-with-java.jar greenstone2-with-java.jar.o"/> 50 49 </exec> 51 50 <exec executable="/usr/bin/objcopy" dir="${basedir}/wrapped-installer/build"> … … 56 55 </exec> 57 56 58 59 57 <!-- get size of greenstone.jar --> 60 <exec executable="ls" dir="${basedir}/wrapped-installer/build" outputproperty="greenstone 3.jar.ls"><arg line="-l greenstone3.jar"/></exec>61 <exec executable="sed" inputstring="${greenstone 3.jar.ls}" outputproperty="greenstone3.jar.size"><arg line="-e 's/^[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *\([0-9]*\).*$/\1/g'"/></exec>58 <exec executable="ls" dir="${basedir}/wrapped-installer/build" outputproperty="greenstone2.jar.ls"><arg line="-l greenstone2.jar"/></exec> 59 <exec executable="sed" inputstring="${greenstone2.jar.ls}" outputproperty="greenstone2.jar.size"><arg line="-e 's/^[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *\([0-9]*\).*$/\1/g'"/></exec> 62 60 63 61 <!-- get size of greenstone-with-java.jar --> 64 <exec executable="ls" dir="${basedir}/wrapped-installer/build" outputproperty="greenstone 3-with-java.jar.ls"><arg line="-l greenstone3-with-java.jar"/></exec>65 <exec executable="sed" inputstring="${greenstone 3-with-java.jar.ls}" outputproperty="greenstone3-with-java.jar.size"><arg line="-e 's/^[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *\([0-9]*\).*$/\1/g'"/></exec>62 <exec executable="ls" dir="${basedir}/wrapped-installer/build" outputproperty="greenstone2-with-java.jar.ls"><arg line="-l greenstone2-with-java.jar"/></exec> 63 <exec executable="sed" inputstring="${greenstone2-with-java.jar.ls}" outputproperty="greenstone2-with-java.jar.size"><arg line="-e 's/^[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *\([0-9]*\).*$/\1/g'"/></exec> 66 64 67 65 <!-- get size of search4j --> … … 73 71 <exec executable="sed" inputstring="${java.ls}" outputproperty="java.size"><arg line="-e 's/^[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *\([0-9]*\).*$/\1/g'"/></exec> 74 72 75 76 73 <echo level="info">creating the header file for no java version</echo> 77 <delete file=" mywrapper.h"/>78 <exec executable="echo" output="${basedir}/wrapped-installer/build/ mywrapper.h"><arg line="extern const char greenstone3jar[${greenstone3.jar.size}];"/></exec>79 <exec executable="echo" output="${basedir}/wrapped-installer/build/ mywrapper.h" append="true"><arg line="extern const char search4j[${search4j.size}];"/></exec>74 <delete file="wrapper.h"/> 75 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h"><arg line="extern const char greenstone2jar[${greenstone2.jar.size}];"/></exec> 76 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h" append="true"><arg line="extern const char search4j[${search4j.size}];"/></exec> 80 77 81 78 <echo level="info">compile the wrapper program</echo> 82 79 <exec executable="g++" dir="${basedir}/wrapped-installer/build"> 83 <arg line="-Wall -static -static-libgcc -c -o mywrapper.o mywrapper.c"/>80 <arg line="-Wall -static -static-libgcc -c -o wrapper.o wrapper.cpp"/> 84 81 </exec> 85 82 86 83 <echo level="info">link, bundling the files to be bundled</echo> 87 84 <exec executable="g++" dir="${basedir}/wrapped-installer/build"> 88 <arg line="-static -static-libgcc -o ../greenstone-${version}-linux.bin mywrapper.o greenstone3.jar.o search4j.o"/>85 <arg line="-static -static-libgcc -o ../greenstone-${version}-linux.bin wrapper.o greenstone2.jar.o search4j.o"/> 89 86 </exec> 90 87 91 92 88 <echo level="info">creating the header file for bundled java version</echo> 93 <delete file=" mywrapper.h"/>94 <exec executable="echo" output="${basedir}/wrapped-installer/build/ mywrapper.h"><arg line="extern const char greenstone3jar[${greenstone3-with-java.jar.size}];"/></exec>95 <exec executable="echo" output="${basedir}/wrapped-installer/build/ mywrapper.h" append="true"><arg line="extern const char search4j[${search4j.size}];"/></exec>96 <exec executable="echo" output="${basedir}/wrapped-installer/build/ mywrapper.h" append="true"><arg line="extern const char java[${java.size}];"/></exec>97 <exec executable="echo" output="${basedir}/wrapped-installer/build/ mywrapper.h" append="true"><arg line="#define java_is_bundled yes"/></exec>89 <delete file="wrapper.h"/> 90 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h"><arg line="extern const char greenstone2jar[${greenstone2-with-java.jar.size}];"/></exec> 91 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h" append="true"><arg line="extern const char search4j[${search4j.size}];"/></exec> 92 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h" append="true"><arg line="extern const char java[${java.size}];"/></exec> 93 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h" append="true"><arg line="#define java_is_bundled yes"/></exec> 98 94 99 95 <echo level="info">recompile the wrapper program</echo> 100 96 <exec executable="g++" dir="${basedir}/wrapped-installer/build"> 101 <arg line="-Wall -static -static-libgcc -c -o mywrapper.o mywrapper.c"/>97 <arg line="-Wall -static -static-libgcc -c -o wrapper.o wrapper.cpp"/> 102 98 </exec> 103 99 104 100 <echo level="info">relink, bundling the files to be bundled</echo> 105 101 <exec executable="g++" dir="${basedir}/wrapped-installer/build"> 106 <arg line="-static -static-libgcc -o ../greenstone-${version}-linux-with-java.bin mywrapper.o greenstone3-with-java.jar.o search4j.o java.o"/>102 <arg line="-static -static-libgcc -o ../greenstone-${version}-linux-with-java.bin wrapper.o greenstone2-with-java.jar.o search4j.o java.o"/> 107 103 </exec> 108 109 110 104 111 105 </if> 112 106 </target> 113 107 114 <target name="clean-up-after-wrapping">115 <if><bool><istrue value="${execute}"/></bool>116 <delete dir="${basedir}/wrapped-installer/build"/>117 </if>118 </target>119 120 121 122 108 </project>
Note:
See TracChangeset
for help on using the changeset viewer.