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 |
|
---|
13 | <!-- CONSTANTS -->
|
---|
14 |
|
---|
15 | <!-- the extra space for the dmg image (KB) -->
|
---|
16 | <property name="dmg.overhead" value="2048"/>
|
---|
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="shared-ant-scripts/operations-on-gli.xml"/>
|
---|
24 | <import file="../greenstone2/ant-scripts/rk2-targets.xml"/>
|
---|
25 | <import file="compile.xml"/>
|
---|
26 | <import file="create-distribution.xml"/>
|
---|
27 | <import file="create-installer.xml"/>
|
---|
28 | <import file="wrap.xml"/>
|
---|
29 |
|
---|
30 | <!-- TARGET TO PERFORM ADDITIONAL PRECONDITION CHECKS -->
|
---|
31 | <target name="mark2-init">
|
---|
32 | <if>
|
---|
33 | <bool>
|
---|
34 | <or><equals arg1="${processor}" arg2="ppc" /><equals arg1="${processor}" arg2="intel"/></or>
|
---|
35 | </bool>
|
---|
36 |
|
---|
37 | <else>
|
---|
38 | <echo>Processor type not set or set wrongly. Please set the property 'processor' to either 'intel' or 'ppc' in build.properties</echo>
|
---|
39 | <fail>Processor not set</fail>
|
---|
40 | </else>
|
---|
41 | </if>
|
---|
42 | <echo>Processor: ${processor}</echo>
|
---|
43 | </target>
|
---|
44 |
|
---|
45 | <!-- THE MAIN TARGET -->
|
---|
46 | <target name="mark2" depends="init,mark2-init">
|
---|
47 | <antcall target="compile"/>
|
---|
48 | <antcall target="create-distribution"/>
|
---|
49 | <antcall target="create-installer"/>
|
---|
50 | <antcall target="wrap"/>
|
---|
51 | </target>
|
---|
52 |
|
---|
53 | </project>
|
---|