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

Revision 19039, 2.3 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        July 2008
5        Mac Release Kit for Greenstone3 (mark3)
6        Oran Fry
7        ..........................................................
8-->
9
10<project name="mark3-build" default="mark3">
11
12    <!-- CONSTANTS -->
13
14    <!-- the amount extra space to allocate in the dmgs in (KB) -->
15    <property name="dmg.overhead" value="4096"/>
16
17    <!-- for the benefit of the shared scripts, set release-kit home -->
18    <property name="rk.name" value="mark3"/>
19    <property name="rk.home" value="${mark3.home}" />
20    <property name="rk.os" value="linux" />
21    <!-- os.suffix set dynamically below -->
22
23    <!-- IMPORT OTHER ANT SCRIPTS -->
24    <import file="../core/ant-scripts/init.xml"/>
25    <import file="../core/ant-scripts/operations-on-gli.xml"/>
26    <import file="../greenstone3/ant-scripts/rk3-targets.xml"/>
27    <import file="compile.xml"/>
28    <import file="create-distribution.xml"/>
29    <import file="create-components.xml"/>
30    <import file="create-installer.xml"/>
31    <import file="wrap.xml"/>
32
33    <!-- TARGET TO PERFORM ADDITIONAL PRECONDITION CHECKS -->
34    <target name="mark3-init">
35        <if>
36            <bool>
37                <or><equals arg1="${processor}" arg2="ppc" /><equals arg1="${processor}" arg2="intel"/></or>
38            </bool>
39
40            <else>
41                <echo>Processor type not set or set wrongly. Please set the property 'processor' to either 'intel' or 'ppc' in build.properties</echo>
42                <fail>Processor not set</fail>
43            </else>
44        </if>
45        <echo>Processor: ${processor}</echo>
46    </target>
47
48    <property name="os.suffix" value="MacOS-${processor}"/>
49
50    <!-- THE MAIN TARGET -->
51    <target name="mark3" depends="init,mark3-init">
52        <antcall target="compile"/>
53        <antcall target="create-distribution"/>
54        <antcall target="create-components"/>
55        <antcall target="create-installer"/>
56        <antcall target="wrap"/>
57    </target>
58
59    <target name="properties">
60        <echo>Required Properties:</echo>
61        <echo>version             the version string for the release</echo>
62        <echo>processor           the processor type of the release. Allowed Values: 'ppc', 'intel'.</echo>
63        <echo/>
64
65        <echo>Optional Properties:</echo>
66        <echo>branch.path         the branch of Greenstone3 to make a release of. Eg: tags/2.81. Default: trunk.</echo>
67        <echo>branch.revision     the revision of Greenstone3 to make a release of. Eg: 18273. Default: HEAD.</echo>
68        <echo/>
69    </target>
70
71
72</project>
Note: See TracBrowser for help on using the browser.