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

Revision 19001, 1.2 KB (checked in by oranfry, 10 years ago)

initial derk logic

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="create-archives"/>
27    </target>
28
29    <target name="export-dec">
30        <delete dir="dec"/>
31        <svn>
32            <export srcurl="${svn.root}/documented-example-collections" destPath="dec"/>
33        </svn>
34    </target>
35
36    <target name="create-archives">
37        <mkdir dir="products"/>
38        <zip destfile="products/Greenstone-${version}-documented-examples.zip" basedir="${basedir}" includes="dec/**/*"/>
39        <exec executable="tar">
40            <arg line="-czf products/Greenstone-${version}-documented-examples.tar.gz dec"/>
41        </exec>
42    </target>
43
44</project>
Note: See TracBrowser for help on using the browser.