source: main/trunk/release-kits/kits/derk/ant-scripts/build.xml@ 21651

Last change on this file since 21651 was 21651, checked in by oranfry, 13 years ago

tidied up the cdrom and documented examples release kits

File size: 2.1 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!--
3 ..........................................................
4 April 2009
5 Documented Example Release Kit (derk)
6 Oran Fry
7 ..........................................................
8-->
9
10<project name="derk-build" default="derk">
11
12 <!-- IMPORT OTHER ANT SCRIPTS -->
13 <import file="${rk.home}/shared/core/ant-scripts/shared.xml"/>
14
15 <!-- THE MAIN TARGET -->
16 <target name="derk" depends="init">
17 <!-- export the documented examples -->
18 <if><bool><not><available file="documented-examples"/></not></bool>
19 <exec executable="svn">
20 <arg value="export"/>
21 <arg value="${svn.root}/documented-examples/${branch.path}"/>
22 <arg value="documented-examples"/>
23 </exec>
24 </if>
25
26 <!-- clean up -->
27 <delete file="documented-examples/text-for-translation.txt"/>
28
29 <!-- prepare-gs2build -->
30 <if>
31 <bool><not><available file="gs2build"/></not></bool>
32 <exec executable="svn">
33 <arg value="export"/>
34 <arg value="${svn.root}/main/${branch.path}/gs2build"/>
35 <arg value="gs2build"/>
36 </exec>
37 </if>
38 <if><bool><not><available file="gs2build/Makefile"/></not></bool>
39 <exec dir="gs2build" executable="/bin/bash" failonerror="true"><arg value="./configure"/></exec>
40 <exec dir="gs2build/common-src" executable="make" failonerror="true"/>
41 <exec dir="gs2build/common-src" executable="make" failonerror="true"><arg value="install"/></exec>
42 <exec dir="gs2build" executable="/bin/bash" failonerror="true"><arg value="./configure"/></exec>
43 <exec dir="gs2build" executable="make" failonerror="true"/>
44 <exec dir="gs2build" executable="make" failonerror="true"><arg value="install"/></exec>
45 </if>
46
47 <!-- build the collections -->
48 <exec dir="gs2build" executable="${derk.home}/resources/build.sh" failonerror="true"/>
49
50
51 <!-- create archives -->
52 <mkdir dir="products"/>
53 <zip destfile="products/Greenstone-documented-examples-${version}.zip" basedir="." includes="documented-examples/**/*"/>
54 <exec executable="tar">
55 <arg line="-czf products/Greenstone-documented-examples-${version}.tar.gz documented-examples"/>
56 </exec>
57
58 </target>
59
60 <target name="properties" depends="core-properties"/>
61
62</project>
Note: See TracBrowser for help on using the repository browser.