source: release-kits/mark2/ant-scripts/build.xml@ 20375

Last change on this file since 20375 was 20375, checked in by oranfry, 15 years ago

let init set rk.os

File size: 2.6 KB
Line 
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 <!-- CONSTANTS -->
13
14 <!-- the extra space for the dmg image (KB) -->
15 <property name="dmg.overhead" value="2048"/>
16
17 <!-- for the benefit of the shared scripts, set release-kit home -->
18 <property name="rk.name" value="mark2"/>
19 <property name="rk.home" value="${mark2.home}" />
20 <property name="shell.os" value="darwin" />
21 <!-- os.suffix set dynamically below -->
22
23 <!-- IMPORT OTHER ANT SCRIPTS -->
24 <import file="../core/ant-scripts/init.xml"/>
25 <import file="../core/ant-scripts/operations-on-gli.xml"/>
26 <import file="../greenstone2/ant-scripts/rk2-targets.xml"/>
27 <import file="../linux/ant-scripts/linux-targets.xml"/>
28 <import file="compile.xml"/>
29 <import file="create-distribution.xml"/>
30 <import file="create-components.xml"/>
31 <import file="create-installer.xml"/>
32 <import file="wrap.xml"/>
33 <import file="create-cdrom-components.xml"/>
34
35 <!-- TARGET TO PERFORM ADDITIONAL PRECONDITION CHECKS -->
36 <target name="mark2-init">
37 <if>
38 <bool>
39 <or><equals arg1="${processor}" arg2="ppc" /><equals arg1="${processor}" arg2="intel"/></or>
40 </bool>
41
42 <else>
43 <echo>Processor type not set or set wrongly. Please set the property 'processor' to either 'intel' or 'ppc' in build.properties</echo>
44 <fail>Processor not set</fail>
45 </else>
46 </if>
47 <echo>Processor: ${processor}</echo>
48 </target>
49
50 <property name="os.suffix" value="MacOS-${processor}"/>
51
52 <!-- THE MAIN TARGET -->
53 <target name="mark2" depends="init,gs2-init,mark2-init">
54 <antcall target="compile"/>
55 <antcall target="create-distribution"/>
56 <antcall target="create-components"/>
57 <antcall target="create-installer"/>
58 <antcall target="wrap"/>
59 <antcall target="create-cdrom-components"/>
60 </target>
61
62 <target name="properties">
63 <echo>Required Properties:</echo>
64 <echo>version the version string for the release</echo>
65 <echo>processor the processor type of the release. Allowed Values: 'ppc', 'intel'.</echo>
66 <echo/>
67
68 <echo>Optional Properties:</echo>
69 <echo>branch.path the branch of gsdl to make a release of. Eg: tags/2.81. Default: trunk.</echo>
70 <echo>branch.revision the revision of gsdl to make a release of. Eg: 18273. Default: HEAD.</echo>
71 <echo>server.exe.location URL to get server.exe from</echo>
72 <echo/>
73 </target>
74
75
76</project>
Note: See TracBrowser for help on using the repository browser.