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

Last change on this file since 21749 was 21749, checked in by oranfry, 12 years ago

fixing derk

File size: 1.9 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" executable="make" failonerror="true"/>
41 <exec dir="gs2build" executable="make" failonerror="true"><arg value="install"/></exec>
42 </if>
43
44 <!-- build the collections -->
45 <exec dir="gs2build" executable="${rk.home}/kits/${rk.name}/resources/build.sh" failonerror="true"/>
46
47 <!-- create archives -->
48 <mkdir dir="products"/>
49 <zip destfile="products/Greenstone-documented-examples-${version}.zip" basedir="." includes="documented-examples/**/*"/>
50 <exec executable="tar">
51 <arg line="-czf products/Greenstone-documented-examples-${version}.tar.gz documented-examples"/>
52 </exec>
53
54 </target>
55
56 <target name="properties" depends="core-properties"/>
57
58</project>
Note: See TracBrowser for help on using the repository browser.