[14982] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <!--
|
---|
[16453] | 3 | ..........................................................
|
---|
| 4 | June 2008
|
---|
| 5 | Mac Release Kit for Greenstone2 (mark2)
|
---|
[14982] | 6 | Oran Fry
|
---|
| 7 | ..........................................................
|
---|
| 8 | -->
|
---|
[16741] | 9 |
|
---|
[16453] | 10 | <project name="mark2-build" default="mark2">
|
---|
[14982] | 11 |
|
---|
[16175] | 12 | <!-- CONSTANTS -->
|
---|
[14982] | 13 |
|
---|
[16808] | 14 | <!-- the extra space for the dmg image (KB) -->
|
---|
| 15 | <property name="dmg.overhead" value="2048"/>
|
---|
| 16 |
|
---|
[16175] | 17 | <!-- for the benefit of the shared scripts, set release-kit home -->
|
---|
[17898] | 18 | <property name="rk.name" value="mark2"/>
|
---|
[16453] | 19 | <property name="rk.home" value="${mark2.home}" />
|
---|
[17996] | 20 | <property name="shell.os" value="darwin" />
|
---|
[17898] | 21 | <!-- os.suffix set dynamically below -->
|
---|
[16175] | 22 |
|
---|
| 23 | <!-- IMPORT OTHER ANT SCRIPTS -->
|
---|
[19006] | 24 | <import file="../core/ant-scripts/init.xml"/>
|
---|
| 25 | <import file="../core/ant-scripts/operations-on-gli.xml"/>
|
---|
[16911] | 26 | <import file="../greenstone2/ant-scripts/rk2-targets.xml"/>
|
---|
[14982] | 27 | <import file="compile.xml"/>
|
---|
| 28 | <import file="create-distribution.xml"/>
|
---|
[17453] | 29 | <import file="create-components.xml"/>
|
---|
[14982] | 30 | <import file="create-installer.xml"/>
|
---|
| 31 | <import file="wrap.xml"/>
|
---|
[19592] | 32 | <import file="create-cdrom-components.xml"/>
|
---|
[14982] | 33 |
|
---|
[16519] | 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>
|
---|
[16654] | 42 | <echo>Processor type not set or set wrongly. Please set the property 'processor' to either 'intel' or 'ppc' in build.properties</echo>
|
---|
[16519] | 43 | <fail>Processor not set</fail>
|
---|
| 44 | </else>
|
---|
| 45 | </if>
|
---|
[16741] | 46 | <echo>Processor: ${processor}</echo>
|
---|
[16519] | 47 | </target>
|
---|
| 48 |
|
---|
[16175] | 49 | <!-- THE MAIN TARGET -->
|
---|
[19793] | 50 | <target name="mark2" depends="init,gs2-init,mark2-init">
|
---|
[16741] | 51 | <antcall target="compile"/>
|
---|
| 52 | <antcall target="create-distribution"/>
|
---|
[17453] | 53 | <antcall target="create-components"/>
|
---|
[16741] | 54 | <antcall target="create-installer"/>
|
---|
| 55 | <antcall target="wrap"/>
|
---|
[19592] | 56 | <antcall target="create-cdrom-components"/>
|
---|
[14982] | 57 | </target>
|
---|
| 58 |
|
---|
[19039] | 59 | <target name="properties">
|
---|
| 60 | <echo>Required Properties:</echo>
|
---|
[19793] | 61 | <echo>version the version string for the release</echo>
|
---|
| 62 | <echo>processor the processor type of the release. Allowed Values: 'ppc', 'intel'.</echo>
|
---|
[19039] | 63 | <echo/>
|
---|
| 64 |
|
---|
| 65 | <echo>Optional Properties:</echo>
|
---|
[19793] | 66 | <echo>branch.path the branch of gsdl to make a release of. Eg: tags/2.81. Default: trunk.</echo>
|
---|
| 67 | <echo>branch.revision the revision of gsdl to make a release of. Eg: 18273. Default: HEAD.</echo>
|
---|
| 68 | <echo>server.exe.location URL to get server.exe from</echo>
|
---|
[19039] | 69 | <echo/>
|
---|
| 70 | </target>
|
---|
| 71 |
|
---|
| 72 |
|
---|
[14982] | 73 | </project>
|
---|