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

Last change on this file since 19006 was 19006, checked in by oranfry, 15 years ago

changed the release kits to use the new shared code structure

File size: 1.8 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
10<project name="mark2-build" default="mark2">
11
12 <!-- CONSTANTS -->
13
14 <!-- the extra space for the dmg image (KB) -->
15 <property name="dmg.overhead" value="2048"/>
16
17 <!-- for the benefit of the shared scripts, set release-kit home -->
18 <property name="rk.name" value="mark2"/>
19 <property name="rk.home" value="${mark2.home}" />
20 <property name="rk.os" value="linux" />
21 <property name="shell.os" value="darwin" />
22 <!-- os.suffix set dynamically below -->
23
24 <!-- IMPORT OTHER ANT SCRIPTS -->
25 <import file="../core/ant-scripts/init.xml"/>
26 <import file="../core/ant-scripts/operations-on-gli.xml"/>
27 <import file="../greenstone2/ant-scripts/rk2-targets.xml"/>
28 <import file="compile.xml"/>
29 <import file="create-distribution.xml"/>
30 <import file="create-components.xml"/>
31 <import file="create-installer.xml"/>
32 <import file="wrap.xml"/>
33
34 <!-- TARGET TO PERFORM ADDITIONAL PRECONDITION CHECKS -->
35 <target name="mark2-init">
36 <if>
37 <bool>
38 <or><equals arg1="${processor}" arg2="ppc" /><equals arg1="${processor}" arg2="intel"/></or>
39 </bool>
40
41 <else>
42 <echo>Processor type not set or set wrongly. Please set the property 'processor' to either 'intel' or 'ppc' in build.properties</echo>
43 <fail>Processor not set</fail>
44 </else>
45 </if>
46 <echo>Processor: ${processor}</echo>
47 </target>
48
49 <property name="os.suffix" value="MacOS-${processor}"/>
50
51 <!-- THE MAIN TARGET -->
52 <target name="mark2" depends="init,mark2-init">
53 <antcall target="compile"/>
54 <antcall target="create-distribution"/>
55 <antcall target="create-components"/>
56 <antcall target="create-installer"/>
57 <antcall target="wrap"/>
58 </target>
59
60</project>
Note: See TracBrowser for help on using the repository browser.