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 | <!-- for the benefit of the shared scripts, set release-kit home -->
|
---|
16 | <property name="rk.home" value="${mark2.home}" />
|
---|
17 |
|
---|
18 | <!-- IMPORT OTHER ANT SCRIPTS -->
|
---|
19 | <import file="shared-ant-scripts/init.xml"/>
|
---|
20 | <import file="shared-ant-scripts/operations-on-gli.xml"/>
|
---|
21 | <import file="compile.xml"/>
|
---|
22 | <import file="create-distribution.xml"/>
|
---|
23 | <import file="create-installer.xml"/>
|
---|
24 | <import file="wrap.xml"/>
|
---|
25 |
|
---|
26 | <!-- TARGET TO PERFORM ADDITIONAL PRECONDITION CHECKS -->
|
---|
27 | <target name="mark2-init">
|
---|
28 | <if>
|
---|
29 | <bool>
|
---|
30 | <or><equals arg1="${processor}" arg2="ppc" /><equals arg1="${processor}" arg2="intel"/></or>
|
---|
31 | </bool>
|
---|
32 |
|
---|
33 | <else>
|
---|
34 | <echo>Processor type not set or set wrongly. Please set the property 'processor' to either 'intel' or 'ppc' in build.properties</echo>
|
---|
35 | <fail>Processor not set</fail>
|
---|
36 | </else>
|
---|
37 | </if>
|
---|
38 | <echo>Processor: ${processor}</echo>
|
---|
39 | </target>
|
---|
40 |
|
---|
41 | <!-- THE MAIN TARGET -->
|
---|
42 | <target name="mark2" depends="init,mark2-init">
|
---|
43 | <antcall target="compile"/>
|
---|
44 | <antcall target="create-distribution"/>
|
---|
45 | <antcall target="create-installer"/>
|
---|
46 | <antcall target="wrap"/>
|
---|
47 | </target>
|
---|
48 |
|
---|
49 | </project>
|
---|