root/release-kits/derk/ant-scripts/build.xml @ 19028

Revision 19028, 2.1 KB (checked in by oranfry, 10 years ago)

progress on derk

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    <!-- 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    <!-- IMPORT OTHER ANT SCRIPTS -->
21    <import file="../core/ant-scripts/init.xml"/>
22
23    <!-- THE MAIN TARGET -->
24    <target name="derk" depends="init">
25        <antcall target="export-dec"/>
26        <antcall target="prepare-gs2build"/>
27        <antcall target="build-collections"/>
28        <antcall target="create-archives"/>
29    </target>
30
31    <target name="export-dec">
32        <if><bool><not><available file="dec"/></not></bool>
33            <svn>
34                <export srcurl="${svn.root}/documented-example-collections/${branch.path}" destPath="dec"/>
35            </svn>
36        </if>
37    </target>
38
39    <target name="prepare-gs2build">
40        <if>
41            <bool><not><available file="gs2build"/></not></bool>
42            <svn>
43                <export srcurl="${svn.root}/gs2build" destPath="gs2build"/>
44            </svn>
45        </if>
46
47        <exec dir="gs2build" executable="/bin/bash" failonerror="true"><arg value="./configure"/></exec>
48        <exec dir="gs2build/common-src" executable="make" failonerror="true"/>
49        <exec dir="gs2build/common-src" executable="make" failonerror="true"><arg value="install"/></exec>
50        <exec dir="gs2build" executable="make" failonerror="true"/>
51        <exec dir="gs2build" executable="make" failonerror="true"><arg value="install"/></exec>
52
53    </target>
54
55    <target name="build-collections">
56        <exec dir="gs2build" executable="${derk.home}/resources/build.sh" failonerror="true"/>
57    </target>
58
59    <target name="create-archives">
60        <mkdir dir="products"/>
61        <zip destfile="products/Greenstone-${version}-documented-examples.zip" basedir="${basedir}" includes="dec/**/*"/>
62        <exec executable="tar">
63            <arg line="-czf products/Greenstone-${version}-documented-examples.tar.gz dec"/>
64        </exec>
65    </target>
66
67</project>
Note: See TracBrowser for help on using the browser.