root/release-kits/sork2/ant-scripts/build.xml @ 19039

Revision 19039, 3.1 KB (checked in by oranfry, 11 years ago)

the properties targets of all release kits, which keep track of the properties supported (rk-build.properties)

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!--
3        ..........................................................
4        November 2008
5        Source Release Kit for Greenstone2 (sork2)
6        Oran Fry
7        ..........................................................
8-->
9
10<project name="sork2-build" default="sork2">
11
12    <!-- CONSTANTS -->
13
14    <!-- for the benefit of the shared scripts, set release-kit home -->
15    <property name="rk.name" value="sork2"/>
16    <property name="rk.home" value="${sork2.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    <import file="../core/ant-scripts/operations-on-gli.xml"/>
23    <import file="../greenstone2/ant-scripts/rk2-targets.xml"/>
24
25    <!-- THE MAIN TARGET -->
26    <target name="sork2" depends="init">
27        <antcall target="export-gsdl-gli"><param name="dest" value="distributions/Greenstone-${version}-source"/></antcall>
28        <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/distributions/Greenstone-${version}-source"/></antcall>
29        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/Greenstone-${version}-source/gli"/></antcall>
30        <antcall target="insert-winbin"/>
31        <antcall target="insert-windows-perl"><param name="gsdl.basedir" value="${basedir}/distributions/Greenstone-${version}-source"/></antcall>
32        <antcall target="tweak-files" />
33        <antcall target="create-archives"/>
34    </target>
35
36    <target name="properties">
37        <echo>Required Properties:</echo>
38        <echo>version             the version string for the release</echo>
39        <echo/>
40
41        <echo>Optional Properties:</echo>
42        <echo>branch.path         the branch of gsdl to make a release of. Eg: tags/2.81. Default: trunk.</echo>
43        <echo>branch.revision     the revision of gsdl to make a release of. Eg: 18273. Default: HEAD.</echo>
44        <echo/>
45    </target>
46
47
48    <target name="tweak-files">
49        <!--<rsr file="distributions/Greenstone-${version}-source/Install.sh" pattern="^(iscdrom=).*" replacement="$1&quot;no&quot;" />-->
50        <delete file="distributions/Greenstone-${version}-source/Install.sh" />
51        <delete file="distributions/Greenstone-${version}-source/bin/linux/mgquery_old" />
52    </target>
53
54    <target name="insert-winbin">
55        <delete dir="distributions/Greenstone-${version}-source/bin/windows"/>
56        <svn>
57            <export srcurl="${svn.root}/other-projects/trunk/winbin/bin" destPath="distributions/Greenstone-${version}-source/bin/windows"/>
58        </svn>
59        <get src="http://greenstone.org/release-snapshots/server.exe" dest="distributions/Greenstone-${version}-source/bin/windows/server.exe"/>
60       
61        <delete dir="distributions/Greenstone-${version}-source/bin/windows/imagemagick"/>
62        <delete dir="distributions/Greenstone-${version}-source/bin/windows/ghostscript"/>
63    </target>
64
65    <target name="create-archives">
66        <mkdir dir="products"/>
67        <zip destfile="products/Greenstone-${version}-source.zip" basedir="distributions" includes="Greenstone-${version}-source/**/*"/>
68        <exec dir="distributions" executable="tar">
69            <arg line="-czf ../products/Greenstone-${version}-source.tar.gz Greenstone-${version}-source"/>
70        </exec>
71    </target>
72
73</project>
Note: See TracBrowser for help on using the browser.