Changeset 17446 for release-kits
- Timestamp:
- 2008-10-02T10:30:18+13:00 (16 years ago)
- Location:
- release-kits/lirk3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/lirk3/ant-scripts/create-components.xml
r17422 r17446 4 4 <!-- create components from the distribution folder --> 5 5 <target name="create-components"> 6 <antcall target="prepare-to-create-components" />7 6 <antcall target="create-core-component" /> 8 7 <antcall target="create-sourcecode-component" /> … … 11 10 </target> 12 11 13 <target name="prepare-to-create-components">14 <delete dir="components"/>15 <mkdir dir="components/tmp"/>16 </target>17 18 12 <target name="create-core-component"> 19 13 <antcall target="prepare-core-component" /> … … 38 32 <target name="prepare-core-component"> 39 33 34 <delete dir="components/tmp/core"/> 40 35 <mkdir dir="components/tmp/core"/> 41 36 … … 74 69 75 70 <target name="prepare-sourcecode-component"> 71 72 <delete dir="components/tmp/sourcecode"/> 76 73 <mkdir dir="components/tmp/sourcecode"/> 74 77 75 <copy todir="components/tmp/sourcecode" overwrite="true"> 78 76 <fileset dir="distribution/greenstone3"> … … 92 90 93 91 <target name="prepare-ant-component"> 92 93 <delete dir="components/tmp/ant"/> 94 94 <mkdir dir="components/tmp/ant"/> 95 95 96 <copy todir="components/tmp/ant" overwrite="true"> 96 97 <fileset dir="distribution/greenstone3/packages"> … … 107 108 108 109 <target name="prepare-tomcat-component"> 110 111 <delete dir="components/tmp/tomcat"/> 109 112 <mkdir dir="components/tmp/tomcat"/> 113 110 114 <copy todir="components/tmp/tomcat" overwrite="true"> 111 115 <fileset dir="distribution/greenstone3/packages"> -
release-kits/lirk3/ant-scripts/wrap.xml
r16684 r17446 18 18 <copy todir="${basedir}/wrapped-installer/build" file="${lirk3.home}/linux/${linux-java.installer}"/> 19 19 <copy todir="${basedir}/wrapped-installer/build" file="${basedir}/installer/greenstone3.jar"/> 20 <copy todir="${basedir}/wrapped-installer/build" file="${basedir}/installer/greenstone3-with-java.jar"/>21 20 22 21 <!-- substitute the real java installer filename and min version into various files --> … … 34 33 </exec> 35 34 <exec executable="/usr/bin/objcopy" dir="${basedir}/wrapped-installer/build"> 36 <arg line="-I binary -O elf32-i386 -B i386 --redefine-sym _binary_greenstone3_with_java_jar_start=greenstone3jar --readonly-text greenstone3-with-java.jar greenstone3-with-java.jar.o"/>37 </exec>38 <exec executable="/usr/bin/objcopy" dir="${basedir}/wrapped-installer/build">39 35 <arg line="-I binary -O elf32-i386 -B i386 --redefine-sym _binary_${linux-java.installer}_start=java --readonly-text ${linux-java.installer} java.o"/> 40 36 </exec> 41 42 37 43 38 <!-- get size of greenstone.jar --> … … 45 40 <exec executable="sed" inputstring="${greenstone3.jar.ls}" outputproperty="greenstone3.jar.size"><arg line="-e 's/^[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *\([0-9]*\).*$/\1/g'"/></exec> 46 41 47 <!-- get size of greenstone-with-java.jar -->48 <exec executable="ls" dir="${basedir}/wrapped-installer/build" outputproperty="greenstone3-with-java.jar.ls"><arg line="-l greenstone3-with-java.jar"/></exec>49 <exec executable="sed" inputstring="${greenstone3-with-java.jar.ls}" outputproperty="greenstone3-with-java.jar.size"><arg line="-e 's/^[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *\([0-9]*\).*$/\1/g'"/></exec>50 51 42 <!-- get size of java --> 52 43 <exec executable="ls" dir="${basedir}/wrapped-installer/build" outputproperty="java.ls"><arg line="-l ${linux-java.installer}"/></exec> 53 44 <exec executable="sed" inputstring="${java.ls}" outputproperty="java.size"><arg line="-e 's/^[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *\([0-9]*\).*$/\1/g'"/></exec> 54 55 56 <echo level="info">creating the header file for no java version</echo>57 <delete file="wrapper.h"/>58 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h"><arg line="extern const char greenstone3jar[${greenstone3.jar.size}];"/></exec>59 60 <echo level="info">compile the wrapper program</echo>61 <exec executable="g++" dir="${basedir}/wrapped-installer/build">62 <arg line="-Wall -static -static-libgcc -c -o wrapper.o wrapper.cpp"/>63 </exec>64 45 65 46 <echo level="info">compile libsearch4j</echo> … … 68 49 </exec> 69 50 70 <echo level="info">link, bundling the files to be bundled</echo>71 <exec executable="g++" dir="${basedir}/wrapped-installer/build">72 <arg line="-static -static-libgcc -o ../greenstone-${version}-linux.bin wrapper.o libsearch4j.o greenstone3.jar.o"/>73 </exec>74 75 76 51 <echo level="info">creating the header file for bundled java version</echo> 77 52 <delete file="wrapper.h"/> 78 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h"><arg line="extern const char greenstone3jar[${greenstone3 -with-java.jar.size}];"/></exec>53 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h"><arg line="extern const char greenstone3jar[${greenstone3.jar.size}];"/></exec> 79 54 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h" append="true"><arg line="extern const char java[${java.size}];"/></exec> 80 55 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h" append="true"><arg line="#define java_is_bundled yes"/></exec> … … 87 62 <echo level="info">relink, bundling the files to be bundled</echo> 88 63 <exec executable="g++" dir="${basedir}/wrapped-installer/build"> 89 <arg line="-static -static-libgcc -o ../greenstone-${version}-linux -with-java.bin wrapper.o libsearch4j.o greenstone3-with-java.jar.o java.o"/>64 <arg line="-static -static-libgcc -o ../greenstone-${version}-linux.bin wrapper.o libsearch4j.o greenstone3.jar.o java.o"/> 90 65 </exec> 91 66 -
release-kits/lirk3/installer/build.xml
r17444 r17446 28 28 <!-- install files --> 29 29 <echo>Installing Core Files</echo> 30 <unzip src="${antinstaller.jar}" dest="${installDir}"> 31 <patternset> 32 <include name="bin/**/*"/> 33 <include name="docs/**/*"/> 34 <include name="gli/**/*"/> 35 <include name="gs2build/**/*"/> 36 <exclude name="gs2build/common-src/**/*"/> 37 <exclude name="gs2build/build-src/**/*"/> 38 <exclude name="gs2build/runtime-src/**/*"/> 39 <include name="lib/**/*"/> 40 <include name="web/**/*"/> 41 <include name="resources/**/*"/> 42 43 <include name="greenstone3-build.xml"/> 44 <include name="build.properties"/> 45 <include name="gs3-server.sh"/> 46 <include name="gs3-setup.sh"/> 47 <include name="LICENSE.txt"/> 48 <include name="README.txt"/> 49 <include name="server.jar"/> 50 <include name="Uninstall.jar"/> 51 </patternset> 52 </unzip> 53 <echo/> 30 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="core.lzma"/></patternset></unzip> 31 <sevenzip task="decode" input="${basedir}/core.lzma" output="${basedir}/core.comp"/> 32 <delete file="core.lzma"/> 33 <unzip src="${basedir}/core.comp" dest="${installDir}"/> 34 <delete file="core.comp"/> 54 35 55 36 <!-- jre --> 37 <mkdir dir="packages"/> 56 38 <move todir="${installDir}/packages/jre"> 57 39 <fileset dir="../@linux-java.extracted@"/> … … 101 83 102 84 <echo>Installing Source Code</echo> 103 <mkdir dir="${installDir}/src"/> 104 <unzip src="${antinstaller.jar}" dest="${installDir}"> 105 <patternset> 106 <include name="src/**/*"/> 107 <include name="gs2build/common-src/**/*"/> 108 <include name="gs2build/build-src/**/*"/> 109 <include name="gs2build/runtime-src/**/*"/> 110 </patternset> 111 </unzip> 85 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="sourcecode.lzma"/></patternset></unzip> 86 <sevenzip task="decode" input="${basedir}/sourcecode.lzma" output="${basedir}/sourcecode.comp"/> 87 <delete file="sourcecode.lzma"/> 88 <unzip src="${basedir}/sourcecode.comp" dest="${installDir}"/> 89 <delete file="sourcecode.comp"/> 90 91 112 92 </target> 113 93 114 94 <target name="install-tomcat"> 115 95 <echo>Installing Tomcat (packages/tomcat)</echo> 116 <unzip src="${antinstaller.jar}" dest="${installDir}"> 117 <patternset> 118 <include name="packages/tomcat/**/*"/> 119 </patternset> 120 </unzip> 96 <mkdir dir="packages"/> 97 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="tomcat.lzma"/></patternset></unzip> 98 <sevenzip task="decode" input="${basedir}/tomcat.lzma" output="${basedir}/tomcat.comp"/> 99 <delete file="tomcat.lzma"/> 100 <unzip src="${basedir}/tomcat.comp" dest="${installDir}/packages"/> 101 <delete file="tomcat.comp"/> 102 121 103 <echo>Changing tomcat ports tomcat's server.xml</echo> 122 104 <copy file="${installDir}/resources/tomcat/server.xml" tofile="${installDir}/packages/tomcat/conf/server.xml" overwrite="true"/> … … 135 117 <target name="install-ant"> 136 118 <echo>Installing Ant (packages/ant)</echo> 137 <unzip src="${antinstaller.jar}" dest="${installDir}"> 138 <patternset> 139 <include name="packages/ant/**/*"/> 140 </patternset> 141 </unzip> 119 <mkdir dir="packages"/> 120 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="ant.lzma"/></patternset></unzip> 121 <sevenzip task="decode" input="${basedir}/ant.lzma" output="${basedir}/ant.comp"/> 122 <delete file="ant.lzma"/> 123 <unzip src="${basedir}/ant.comp" dest="${installDir}/packages"/> 124 <delete file="ant.comp"/> 125 142 126 <echo>Setting ant binaries to executable</echo> 143 127 <chmod dir="${installDir}/packages/ant/bin" includes="*" perm="775"/>
Note:
See TracChangeset
for help on using the changeset viewer.