[14982] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <!--
|
---|
| 3 | ..........................................................
|
---|
[16655] | 4 | July 2008
|
---|
| 5 | Mac Release Kit for Greenstone3 (mark3)
|
---|
[14982] | 6 | Oran Fry
|
---|
| 7 | ..........................................................
|
---|
| 8 | -->
|
---|
| 9 |
|
---|
[16655] | 10 | <project name="mark3-build" default="mark3">
|
---|
[14982] | 11 |
|
---|
[16171] | 12 | <!-- CONSTANTS -->
|
---|
[14982] | 13 |
|
---|
[16171] | 14 | <!-- the version numbers of bundled things -->
|
---|
| 15 | <property name="bundled.version.tomcat" value="5.5.25"/>
|
---|
| 16 | <property name="bundled.version.ant" value="1.6.5"/>
|
---|
| 17 |
|
---|
| 18 | <!-- for the benefit of the shared scripts, set release-kit home -->
|
---|
[16655] | 19 | <property name="rk.home" value="${mark3.home}" />
|
---|
[16744] | 20 | <property name="rk.os" value="linux" />
|
---|
[16171] | 21 |
|
---|
| 22 | <!-- IMPORT OTHER ANT SCRIPTS -->
|
---|
| 23 | <import file="shared-ant-scripts/init.xml"/>
|
---|
[16754] | 24 | <import file="shared-ant-scripts/operations-on-gli.xml"/>
|
---|
[16744] | 25 | <import file="../greenstone3/ant-scripts/rk3-targets.xml"/>
|
---|
[14982] | 26 | <import file="compile.xml"/>
|
---|
| 27 | <import file="create-distribution.xml"/>
|
---|
| 28 | <import file="create-installer.xml"/>
|
---|
| 29 | <import file="wrap.xml"/>
|
---|
| 30 |
|
---|
[16655] | 31 | <!-- TARGET TO PERFORM ADDITIONAL PRECONDITION CHECKS -->
|
---|
| 32 | <target name="mark3-init">
|
---|
| 33 | <if>
|
---|
| 34 | <bool>
|
---|
| 35 | <or><equals arg1="${processor}" arg2="ppc" /><equals arg1="${processor}" arg2="intel"/></or>
|
---|
| 36 | </bool>
|
---|
| 37 |
|
---|
| 38 | <else>
|
---|
| 39 | <echo>Processor type not set or set wrongly. Please set the property 'processor' to either 'intel' or 'ppc' in build.properties</echo>
|
---|
| 40 | <fail>Processor not set</fail>
|
---|
| 41 | </else>
|
---|
| 42 | </if>
|
---|
[16744] | 43 | <echo>Processor: ${processor}</echo>
|
---|
[16655] | 44 | </target>
|
---|
| 45 |
|
---|
[16171] | 46 | <!-- THE MAIN TARGET -->
|
---|
[16655] | 47 | <target name="mark3" depends="init,mark3-init">
|
---|
[16744] | 48 | <antcall target="compile"/>
|
---|
| 49 | <antcall target="create-distribution"/>
|
---|
| 50 | <antcall target="create-installer"/>
|
---|
| 51 | <antcall target="wrap"/>
|
---|
[14982] | 52 | </target>
|
---|
| 53 |
|
---|
| 54 | </project>
|
---|