[14982] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 |
|
---|
| 3 | <!--
|
---|
| 4 | ..........................................................
|
---|
[16655] | 5 | July 2008
|
---|
| 6 | Mac Release Kit for Greenstone3 (mark3)
|
---|
[14982] | 7 | Oran Fry
|
---|
| 8 | ..........................................................
|
---|
| 9 | -->
|
---|
| 10 |
|
---|
[16655] | 11 | <project name="mark3-build" default="mark3">
|
---|
[14982] | 12 |
|
---|
[16171] | 13 | <!-- CONSTANTS -->
|
---|
[14982] | 14 |
|
---|
[16171] | 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 |
|
---|
[16243] | 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 |
|
---|
[16171] | 23 | <!-- for the benefit of the shared scripts, set release-kit home -->
|
---|
[16655] | 24 | <property name="rk.home" value="${mark3.home}" />
|
---|
[16171] | 25 |
|
---|
| 26 |
|
---|
| 27 | <!-- IMPORT OTHER ANT SCRIPTS -->
|
---|
| 28 | <import file="shared-ant-scripts/init.xml"/>
|
---|
[14982] | 29 | <import file="compile.xml"/>
|
---|
| 30 | <import file="create-distribution.xml"/>
|
---|
| 31 | <import file="create-installer.xml"/>
|
---|
| 32 | <import file="wrap.xml"/>
|
---|
| 33 |
|
---|
[16655] | 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 |
|
---|
[16171] | 52 | <!-- THE MAIN TARGET -->
|
---|
[16655] | 53 | <target name="mark3" depends="init,mark3-init">
|
---|
[14982] | 54 | <addressedcall target="compile"/>
|
---|
| 55 | <addressedcall target="create-distribution"/>
|
---|
| 56 | <addressedcall target="create-installer"/>
|
---|
| 57 | <addressedcall target="wrap"/>
|
---|
| 58 | </target>
|
---|
| 59 |
|
---|
| 60 | </project>
|
---|