Changeset 15995 for release-kits/lirk3/ant-scripts
- Timestamp:
- 2008-06-13T14:23:32+12:00 (16 years ago)
- Location:
- release-kits/lirk3/ant-scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/lirk3/ant-scripts/create-installer.xml
r15967 r15995 29 29 <echo>Project Path: ${basedir}/distribution/greenstone3</echo> 30 30 <mkdir dir="${basedir}/installer"/> 31 <copy todir="${basedir}/installer" file="${lirk3.home}/installer/antinstall-config.xml" />32 <copy todir="${basedir}/installer" file="${lirk3.home}/installer/build.xml" />33 <copy todir="${basedir}/installer/cp" ><fileset dir="${lirk3.home}/installer/cp"/></copy>31 <copy todir="${basedir}/installer" file="${lirk3.home}/installer/antinstall-config.xml" overwrite="true" /> 32 <copy todir="${basedir}/installer" file="${lirk3.home}/installer/build.xml" overwrite="true" /> 33 <copy todir="${basedir}/installer/cp" overwrite="true"><fileset dir="${lirk3.home}/installer/cp"/></copy> 34 34 35 35 <!-- put the concrete values of things in the config --> … … 71 71 buildFile="${basedir}/installer/build.xml" 72 72 antInstallLib="${lirk3.home}/bin/ant-installer/lib" 73 antLib="${lirk3.home}/bin/a nt-installer/antlib"73 antLib="${lirk3.home}/bin/apache-ant-1.6.5/lib" 74 74 validateConfig="true" 75 75 failOnError="false" … … 103 103 buildFile="${basedir}/installer/build.xml" 104 104 antInstallLib="${lirk3.home}/bin/ant-installer/lib" 105 antLib="${lirk3.home}/bin/a nt-installer/antlib"105 antLib="${lirk3.home}/bin/apache-ant-1.6.5/lib" 106 106 validateConfig="true" 107 107 icons="bluecurve"> -
release-kits/lirk3/ant-scripts/wrap.xml
r15205 r15995 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="${lirk3.home}/ wrapper/mywrapper.c"/>24 <copy todir="${basedir}/wrapped-installer/build" file="${lirk3.home}/linux/wrapper.cpp" overwrite="true" /> 26 25 27 26 <!-- copy bundled files --> 28 <copy todir="${basedir}/wrapped-installer/build" file="${lirk3.home}/search4j/search4j" />27 <copy todir="${basedir}/wrapped-installer/build" file="${lirk3.home}/search4j/search4j" /> 29 28 <copy todir="${basedir}/wrapped-installer/build" file="${lirk3.home}/wrapper/${java.installer}"/> 30 29 <copy todir="${basedir}/wrapped-installer/build" file="${basedir}/installer/greenstone3.jar"/> … … 32 31 33 32 <!-- 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}"/> 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="@installer.name@" replacement="greenstone3"/> 35 <rsr file="${basedir}/wrapped-installer/build/wrapper.cpp" pattern="@java.extracted@" replacement="${java.extracted}"/> 36 <rsr file="${basedir}/wrapped-installer/build/wrapper.cpp" pattern="@java.min.version@" replacement="${java.min.version}"/> 37 37 38 38 </if> … … 75 75 76 76 <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>77 <delete file="wrapper.h"/> 78 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h"><arg line="extern const char greenstone3jar[${greenstone3.jar.size}];"/></exec> 79 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h" append="true"><arg line="extern const char search4j[${search4j.size}];"/></exec> 80 80 81 81 <echo level="info">compile the wrapper program</echo> 82 82 <exec executable="g++" dir="${basedir}/wrapped-installer/build"> 83 <arg line="-Wall -static -static-libgcc -c -o mywrapper.o mywrapper.c"/>83 <arg line="-Wall -static -static-libgcc -c -o wrapper.o wrapper.cpp"/> 84 84 </exec> 85 85 86 86 <echo level="info">link, bundling the files to be bundled</echo> 87 87 <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"/>88 <arg line="-static -static-libgcc -o ../greenstone-${version}-linux.bin wrapper.o greenstone3.jar.o search4j.o"/> 89 89 </exec> 90 90 91 91 92 92 <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>93 <delete file="wrapper.h"/> 94 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h"><arg line="extern const char greenstone3jar[${greenstone3-with-java.jar.size}];"/></exec> 95 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h" append="true"><arg line="extern const char search4j[${search4j.size}];"/></exec> 96 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h" append="true"><arg line="extern const char java[${java.size}];"/></exec> 97 <exec executable="echo" output="${basedir}/wrapped-installer/build/wrapper.h" append="true"><arg line="#define java_is_bundled yes"/></exec> 98 98 99 99 <echo level="info">recompile the wrapper program</echo> 100 100 <exec executable="g++" dir="${basedir}/wrapped-installer/build"> 101 <arg line="-Wall -static -static-libgcc -c -o mywrapper.o mywrapper.c"/>101 <arg line="-Wall -static -static-libgcc -c -o wrapper.o wrapper.cpp"/> 102 102 </exec> 103 103 104 104 <echo level="info">relink, bundling the files to be bundled</echo> 105 105 <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"/>106 <arg line="-static -static-libgcc -o ../greenstone-${version}-linux-with-java.bin wrapper.o greenstone3-with-java.jar.o search4j.o java.o"/> 107 107 </exec> 108 109 110 108 111 109 </if> 112 110 </target> 113 111 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 112 </project>
Note:
See TracChangeset
for help on using the changeset viewer.