source: release-kits/mark2/ant-scripts/build.xml@ 16654

Last change on this file since 16654 was 16654, checked in by oranfry, 16 years ago

got mark2 working

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