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

Revision 16655, 1.7 KB (checked in by oranfry, 12 years ago)

got mark3 working

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2
3<!--
4        ..........................................................
5        July 2008
6        Mac Release Kit for Greenstone3 (mark3)
7        Oran Fry
8        ..........................................................
9-->
10
11<project name="mark3-build" default="mark3">
12
13    <!-- CONSTANTS -->
14
15    <!-- the version numbers of bundled things -->
16    <property name="bundled.version.tomcat" value="5.5.25"/>
17    <property name="bundled.version.ant" value="1.6.5"/>
18
19    <!-- set current month and year-->
20    <exec executable="date" outputproperty="current.month"><arg value="+%b"/></exec>
21    <exec executable="date" outputproperty="current.year"><arg value="+%Y"/></exec>
22
23    <!-- for the benefit of the shared scripts, set release-kit home -->
24    <property name="rk.home" value="${mark3.home}" />
25
26
27    <!-- IMPORT OTHER ANT SCRIPTS -->
28    <import file="shared-ant-scripts/init.xml"/>
29    <import file="compile.xml"/>
30    <import file="create-distribution.xml"/>
31    <import file="create-installer.xml"/>
32    <import file="wrap.xml"/>
33
34    <!-- TARGET TO PERFORM ADDITIONAL PRECONDITION CHECKS -->
35    <target name="mark3-init">
36        <echo>Determining Processor...</echo>
37        <if>
38            <bool>
39                <or><equals arg1="${processor}" arg2="ppc" /><equals arg1="${processor}" arg2="intel"/></or>
40            </bool>
41
42            <echo>Processor: ${processor}</echo>
43            <echo/>
44
45            <else>
46                <echo>Processor type not set or set wrongly. Please set the property 'processor' to either 'intel' or 'ppc' in build.properties</echo>
47                <fail>Processor not set</fail>
48            </else>
49        </if>
50    </target>
51
52    <!-- THE MAIN TARGET -->
53    <target name="mark3" depends="init,mark3-init">
54        <addressedcall target="compile"/>
55        <addressedcall target="create-distribution"/>
56        <addressedcall target="create-installer"/>
57        <addressedcall target="wrap"/>
58    </target>
59
60</project>
Note: See TracBrowser for help on using the browser.