Changeset 21651
- Timestamp:
- 2010-01-27T09:20:02+13:00 (13 years ago)
- Location:
- main/trunk/release-kits/kits
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/release-kits/kits/cdrk2/ant-scripts/build.xml
r21649 r21651 10 10 <project name="cdrk2-build" default="cdrk2"> 11 11 12 <!-- CONSTANTS -->13 14 <!-- for the benefit of the shared scripts, set release-kit home -->15 <property name="rk.name" value="cdrk2"/>16 <property name="rk.home" value="${cdrk2.home}" />17 <property name="rk.os" value="multi" />18 <property name="os.suffix" value="AnyPlatform"/>19 20 12 <!-- IMPORT OTHER ANT SCRIPTS --> 21 13 <import file="${rk.home}/shared/core/ant-scripts/shared.xml"/> … … 23 15 24 16 <!-- figure out where the compiled software is coming from --> 25 <property name="software.archive.linux" value="http://www.greenstone.org/caveat-emptor/cdrom-components-${version}-candidate-${date}-linux.tar.gz"/> 26 <property name="software.archive.windows" value="http://www.greenstone.org/caveat-emptor/cdrom-components-${version}-candidate-${date}-windows.tar.gz"/> 27 <property name="software.archive.mac" value="http://www.greenstone.org/caveat-emptor/cdrom-components-${version}-candidate-${date}-mac.tar.gz"/> 28 <property name="software.archive.documented-examples" value="http://www.greenstone.org/caveat-emptor/Greenstone-documented-examples-${version}-candidate-${date}.tar.gz"/> 29 30 <target name="cdrk2-init"> 17 <property name="software.archive.linux" 18 value="http://www.greenstone.org/caveat-emptor/cdrom-components-${version}-candidate-${date}-linux.tar.gz"/> 19 <property name="software.archive.windows" 20 value="http://www.greenstone.org/caveat-emptor/cdrom-components-${version}-candidate-${date}-windows.tar.gz"/> 21 <property name="software.archive.mac" 22 value="http://www.greenstone.org/caveat-emptor/cdrom-components-${version}-candidate-${date}-mac.tar.gz"/> 23 <property name="software.archive.documented-examples" 24 value="http://www.greenstone.org/caveat-emptor/Greenstone-documented-examples-${version}-candidate-${date}.tar.gz"/> 25 26 27 <!-- THE MAIN TARGET --> 28 <target name="cdrk2" depends="init"> 29 30 <!-- show the properties we're using --> 31 31 <echo message="software.archive.linux: ${software.archive.linux}"/> 32 32 <echo message="software.archive.windows: ${software.archive.windows}"/> 33 33 <echo message="software.archive.mac: ${software.archive.mac}"/> 34 34 <echo message="software.archive.documented-examples: ${software.archive.documented-examples}"/> 35 </target> 36 37 38 <!-- THE MAIN TARGET --> 39 <target name="cdrk2" depends="init,cdrk2-init"> 40 <antcall target="checkout-and-compile-documentation"/> 41 <antcall target="build-tutorials"/> 42 <antcall target="build-documentation"/> 43 <antcall target="insert-documented-examples"/> 44 <antcall target="insert-readmes"/> 45 <antcall target="insert-software"/> 46 <antcall target="create-autorun"/> 47 <antcall target="create-image"/> 48 </target> 49 50 <target name="properties"> 51 <echo>Required Properties:</echo> 52 <echo>version the version string for the release</echo> 53 <echo/> 54 <echo>Optional Properties:</echo> 55 <echo>software.archive.linux the URL to the linux archive of components</echo> 56 <echo>software.archive.windows the URL to the windows archive of components</echo> 57 <echo>software.archive.mac the URL to the mac archive of components</echo> 58 <echo>software.archive.documented-examples the URL to the archive of documented examples</echo> 59 <echo/> 60 </target> 61 62 <target name="checkout-and-compile-documentation"> 35 36 <!-- create a directory for the cdrom contents --> 37 <mkdir dir="cdrom"/> 38 39 <!-- checkout and compile documentation java/fop code --> 63 40 <exec executable="svn"> 64 41 <arg value="export"/> … … 70 47 </javac> 71 48 72 </target> 73 74 <target name="build-tutorials"> 75 49 <!-- checkout tutorials and build them --> 76 50 <exec executable="svn"><arg value="checkout"/><arg value="${svn.root}/documentation/${branch.path}/tutorials"/><arg value="documentation/tutorials"/></exec> 77 51 <exec executable="svn"><arg value="checkout"/><arg value="${svn.root}/main/${branch.path}/gli"/><arg value="documentation/gli"/></exec> … … 79 53 <exec executable="svn"><arg value="checkout"/><arg value="${svn.root}/main/${branch.path}/greenstone2/macros"/><arg value="documentation/macros"/></exec> 80 54 <exec executable="svn"><arg value="checkout"/><arg value="${svn.root}/documentation/${branch.path}/tutorial_sample_files"/><arg value="documentation/tutorial_sample_files"/></exec> 81 82 55 <delete dir="documentation/tutorials/html"/> 83 56 <exec dir="documentation/tutorials" executable="/bin/bash"> … … 85 58 <env key="GSDLHOME" value="${basedir}/documentation"/> 86 59 </exec> 87 88 60 <delete dir="cdrom/Tutorial Exercises"/> 89 61 <mkdir dir="cdrom/Tutorial Exercises/sample_files"/> 90 62 91 <!-- tutorial html-->63 <!-- copy tutorial html into place on the cd --> 92 64 <copy todir="cdrom/Tutorial Exercises/English"><fileset dir="documentation/tutorials/html/en"/></copy> 93 65 <copy todir="cdrom/Tutorial Exercises/French"><fileset dir="documentation/tutorials/html/fr"/></copy> … … 95 67 <copy todir="cdrom/Tutorial Exercises/Russian"><fileset dir="documentation/tutorials/html/ru"/></copy> 96 68 97 <!-- sample files-->69 <!-- create tutorial sample files zips in place on the cdrom --> 98 70 <zip destfile="cdrom/Tutorial Exercises/sample_files/beatles.zip" basedir="documentation/tutorial_sample_files/beatles"/> 99 71 <zip destfile="cdrom/Tutorial Exercises/sample_files/custom.zip" basedir="documentation/tutorial_sample_files/custom"/> … … 109 81 <zip destfile="cdrom/Tutorial Exercises/sample_files/Word_and_PDF.zip" basedir="documentation/tutorial_sample_files/Word_and_PDF"/> 110 82 111 </target> 112 113 <target name="build-documentation"> 114 83 <!-- checkout manuals ad build them --> 115 84 <exec executable="svn"><arg value="checkout"/><arg value="${svn.root}/documentation/${branch.path}/manuals"/><arg value="documentation/manuals"/></exec> 116 85 <exec executable="svn"><arg value="checkout"/><arg value="${svn.root}/documentation/${branch.path}/shared"/><arg value="documentation/shared"/></exec> … … 138 107 </exec> 139 108 109 <!-- put manuals in place on cdrom --> 140 110 <delete dir="cdrom/Documentation"/> 141 111 <copy todir="cdrom/Documentation/English"><fileset dir="documentation/manuals/build/en/pdf"/></copy> … … 145 115 <copy todir="cdrom/Documentation/Arabic"><fileset dir="documentation/manuals/build/ar/pdf"/></copy> 146 116 147 <!-- top it off with a few more-->117 <!-- top off manuals with a few more from the web --> 148 118 <get src="http://wiki.greenstone.org/wiki/gsdoc/others/CDS-ISIS_to_DL.pdf" dest="cdrom/Documentation/English/CDS-ISIS_to_DL.pdf"/> 149 119 <get src="http://www.greenstone.org/docs/inside_greenstone.pdf" dest="cdrom/Documentation/English/inside_greenstone.pdf"/> … … 165 135 <get src="http://prdownloads.sourceforge.net/greenstone/Paper-2.39-kz.pdf" dest="cdrom/Documentation/Kazakh/Paper-2.39-kz.pdf"/> 166 136 167 168 </target> 169 170 <target name="insert-documented-examples"> 171 <antcall target="download-documented-examples"/> 172 <antcall target="untar-documented-examples"/> 173 </target> 174 175 <target name="download-documented-examples"> 176 <!-- download the documented examples --> 137 <!-- insert the documented examples onto cdrom --> 177 138 <mkdir dir="archives"/> 178 139 <get src="${software.archive.documented-examples}" dest="archives/documented-examples.tar.gz"/> 179 </target>180 181 <target name="untar-documented-examples">182 <!-- create Document Examples folder -->183 <!-- insert the documented examples -->184 140 <delete dir="cdrom/Documented Examples"/> 185 141 <copy toDir="cdrom"> 186 <fileset dir="${ cdrk2.home}/resources">142 <fileset dir="${rk.home}/kits/${rk.name}/resources"> 187 143 <include name="Documented Examples/**/*"/> 188 144 <include name="Documented Examples"/> … … 190 146 </copy> 191 147 <exec executable="tar" dir="cdrom/Documented Examples"><arg value="-xzf"/><arg value="../../archives/documented-examples.tar.gz"/></exec> 148 149 <!-- insert readmes --> 150 <copy todir="cdrom"><fileset dir="${rk.home}/greenstone2/docs"/></copy> 151 <antcall target="gsdl-set-dates-in-readmes"><param name="gsdl.basedir" value="${basedir}/cdrom"/></antcall> 152 153 <!-- insert linux software --> 154 <mkdir dir="cdrom"/> 155 <mkdir dir="archives"/> 156 <get src="${software.archive.linux}" dest="archives/linux.tar.gz"/> 157 <exec executable="tar" dir="cdrom"><arg value="-xzf"/><arg value="../archives/linux.tar.gz"/></exec> 158 159 <!-- insert windows software --> 160 <mkdir dir="cdrom"/> 161 <mkdir dir="archives"/> 162 <get src="${software.archive.windows}" dest="archives/windows.tar.gz"/> 163 <exec executable="tar" dir="cdrom"><arg value="-xzf"/><arg value="../archives/windows.tar.gz"/></exec> 164 165 <!-- insert mac software --> 166 <mkdir dir="cdrom"/> 167 <mkdir dir="archives"/> 168 <get src="${software.archive.mac}" dest="archives/mac.tar.gz"/> 169 <exec executable="tar" dir="cdrom"><arg value="-xzf"/><arg value="../archives/mac.tar.gz"/></exec> 170 171 <!-- create autorun (windows) --> 172 <exec executable="cp"> 173 <arg value="${rk.home}/kits/${rk.name}/resources/AUTORUN.INF"/> 174 <arg value="cdrom"/> 175 </exec> 176 177 <!-- finally create the cdrom image --> 178 <mkdir dir="products"/> 179 <exec executable="mkisofs"> 180 <arg value="-V"/> 181 <arg value="Greenstone-${version}"/> 182 <arg value="-input-charset"/> 183 <arg value="utf-8"/> 184 <arg value="-o"/> 185 <arg value="products/Greenstone-${version}-cdrom.iso"/> 186 <arg value="-J"/> 187 <arg value="-R"/> 188 <arg value="-D"/> 189 <arg value="cdrom"/> 190 </exec> 191 <exec executable="/bin/bash" dir="products"> 192 <arg value="-c"/> 193 <arg value="cat Greenstone-${version}-cdrom.iso | gzip > Greenstone-${version}-cdrom.iso.gz"/> 194 </exec> 195 <exec executable="/bin/bash" dir="products"> 196 <arg value="-c"/> 197 <arg value="zip Greenstone-${version}-cdrom.zip Greenstone-${version}-cdrom.iso"/> 198 </exec> 199 192 200 </target> 193 201 194 202 <target name="properties" depends="core-properties"> 203 <echo>Optional Properties:</echo> 204 <echo>software.archive.linux the URL to the linux archive of components</echo> 205 <echo>software.archive.windows the URL to the windows archive of components</echo> 206 <echo>software.archive.mac the URL to the mac archive of components</echo> 207 <echo>software.archive.documented-examples the URL to the archive of documented examples</echo> 208 <echo/> 209 </target> 210 211 <!-- target to generate the manual chapter about gli in a given language --> 195 212 <target name="generate-gli-chapter"> 196 213 <path id="documentation.compile.classpath"> … … 211 228 </target> 212 229 213 <target name="insert-readmes">214 <copy todir="cdrom"><fileset dir="${rk.home}/greenstone2/docs"/></copy>215 <antcall target="gsdl-set-dates-in-readmes"><param name="gsdl.basedir" value="${basedir}/cdrom"/></antcall>216 </target>217 218 <target name="insert-software">219 <antcall target="insert-software-linux"/>220 <antcall target="insert-software-windows"/>221 <antcall target="insert-software-mac"/>222 </target>223 224 <target name="insert-software-linux">225 <mkdir dir="cdrom"/>226 <mkdir dir="archives"/>227 <get src="${software.archive.linux}" dest="archives/linux.tar.gz"/>228 <exec executable="tar" dir="cdrom"><arg value="-xzf"/><arg value="../archives/linux.tar.gz"/></exec>229 </target>230 231 <target name="insert-software-windows">232 <mkdir dir="cdrom"/>233 <mkdir dir="archives"/>234 <get src="${software.archive.windows}" dest="archives/windows.tar.gz"/>235 <exec executable="tar" dir="cdrom"><arg value="-xzf"/><arg value="../archives/windows.tar.gz"/></exec>236 </target>237 238 <target name="insert-software-mac">239 <mkdir dir="cdrom"/>240 <mkdir dir="archives"/>241 <get src="${software.archive.mac}" dest="archives/mac.tar.gz"/>242 <exec executable="tar" dir="cdrom"><arg value="-xzf"/><arg value="../archives/mac.tar.gz"/></exec>243 </target>244 245 <target name="create-autorun">246 <exec executable="cp">247 <arg value="${cdrk2.home}/resources/AUTORUN.INF"/>248 <arg value="cdrom"/>249 </exec>250 </target>251 252 <target name="create-image">253 254 <mkdir dir="products"/>255 256 <exec executable="mkisofs">257 <arg value="-V"/>258 <arg value="Greenstone-${version}"/>259 <arg value="-input-charset"/>260 <arg value="utf-8"/>261 <arg value="-o"/>262 <arg value="products/Greenstone-${version}-cdrom.iso"/>263 <arg value="-J"/>264 <arg value="-R"/>265 <arg value="-D"/>266 <arg value="cdrom"/>267 </exec>268 269 <exec executable="/bin/bash" dir="products">270 <arg value="-c"/>271 <arg value="cat Greenstone-${version}-cdrom.iso | gzip > Greenstone-${version}-cdrom.iso.gz"/>272 </exec>273 274 <exec executable="/bin/bash" dir="products">275 <arg value="-c"/>276 <arg value="zip Greenstone-${version}-cdrom.zip Greenstone-${version}-cdrom.iso"/>277 </exec>278 279 </target>280 281 230 </project> -
main/trunk/release-kits/kits/derk/ant-scripts/build.xml
r21649 r21651 10 10 <project name="derk-build" default="derk"> 11 11 12 <!-- CONSTANTS -->13 14 <!-- for the benefit of the shared scripts, set release-kit home -->15 <property name="rk.name" value="derk"/>16 <property name="rk.home" value="${derk.home}" />17 <property name="rk.os" value="multi" />18 <property name="os.suffix" value="AnyPlatform"/>19 20 12 <!-- IMPORT OTHER ANT SCRIPTS --> 21 13 <import file="${rk.home}/shared/core/ant-scripts/shared.xml"/> … … 23 15 <!-- THE MAIN TARGET --> 24 16 <target name="derk" depends="init"> 25 <antcall target="export-dec"/> 26 <antcall target="tweak-files"/> 27 <antcall target="prepare-gs2build"/> 28 <antcall target="build-collections"/> 29 <antcall target="create-archives"/> 30 </target> 31 32 <target name="properties"> 33 <echo>Required Properties:</echo> 34 <echo>version the version string for the release</echo> 35 <echo/> 36 37 <echo>Optional Properties:</echo> 38 <echo>branch.path the branch of gs2build to use to build collections. Default: trunk.</echo> 39 <echo/> 40 </target> 41 42 <target name="export-dec"> 43 <if><bool><not><available file="dec"/></not></bool> 17 <!-- export the documented examples --> 18 <if><bool><not><available file="documented-examples"/></not></bool> 44 19 <exec executable="svn"> 45 20 <arg value="export"/> … … 48 23 </exec> 49 24 </if> 50 </target>51 25 52 <target name="tweak-files">26 <!-- clean up --> 53 27 <delete file="documented-examples/text-for-translation.txt"/> 54 </target>55 28 56 <target name="prepare-gs2build">29 <!-- prepare-gs2build --> 57 30 <if> 58 31 <bool><not><available file="gs2build"/></not></bool> … … 63 36 </exec> 64 37 </if> 65 66 <if> 67 <bool><not><available file="gs2build/Makefile"/></not></bool> 38 <if><bool><not><available file="gs2build/Makefile"/></not></bool> 68 39 <exec dir="gs2build" executable="/bin/bash" failonerror="true"><arg value="./configure"/></exec> 69 40 <exec dir="gs2build/common-src" executable="make" failonerror="true"/> … … 73 44 <exec dir="gs2build" executable="make" failonerror="true"><arg value="install"/></exec> 74 45 </if> 75 </target>76 46 77 <target name="build-collections">47 <!-- build the collections --> 78 48 <exec dir="gs2build" executable="${derk.home}/resources/build.sh" failonerror="true"/> 79 </target>80 49 81 <target name="create-archives"> 50 51 <!-- create archives --> 82 52 <mkdir dir="products"/> 83 53 <zip destfile="products/Greenstone-documented-examples-${version}.zip" basedir="." includes="documented-examples/**/*"/> … … 85 55 <arg line="-czf products/Greenstone-documented-examples-${version}.tar.gz documented-examples"/> 86 56 </exec> 57 87 58 </target> 88 59 60 <target name="properties" depends="core-properties"/> 61 89 62 </project>
Note:
See TracChangeset
for help on using the changeset viewer.