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

Last change on this file since 17597 was 17597, checked in by oranfry, 16 years ago

untested changes to exclude sourcecode from the binary release, use nicer target names and icons

File size: 1.7 KB
RevLine 
[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 -->
[16453]18 <property name="rk.home" value="${mark2.home}" />
[17317]19 <property name="rk.os" value="linux" />
[16175]20
21 <!-- IMPORT OTHER ANT SCRIPTS -->
22 <import file="shared-ant-scripts/init.xml"/>
[16741]23 <import file="shared-ant-scripts/operations-on-gli.xml"/>
[16911]24 <import file="../greenstone2/ant-scripts/rk2-targets.xml"/>
[14982]25 <import file="compile.xml"/>
26 <import file="create-distribution.xml"/>
[17453]27 <import file="create-components.xml"/>
[14982]28 <import file="create-installer.xml"/>
29 <import file="wrap.xml"/>
30
[16519]31 <!-- TARGET TO PERFORM ADDITIONAL PRECONDITION CHECKS -->
32 <target name="mark2-init">
33 <if>
34 <bool>
35 <or><equals arg1="${processor}" arg2="ppc" /><equals arg1="${processor}" arg2="intel"/></or>
36 </bool>
37
38 <else>
[16654]39 <echo>Processor type not set or set wrongly. Please set the property 'processor' to either 'intel' or 'ppc' in build.properties</echo>
[16519]40 <fail>Processor not set</fail>
41 </else>
42 </if>
[16741]43 <echo>Processor: ${processor}</echo>
[16519]44 </target>
45
[17597]46 <property name="os.suffix" value="MacOS-${processor}"/>
47
[16175]48 <!-- THE MAIN TARGET -->
[16519]49 <target name="mark2" depends="init,mark2-init">
[16741]50 <antcall target="compile"/>
51 <antcall target="create-distribution"/>
[17453]52 <antcall target="create-components"/>
[16741]53 <antcall target="create-installer"/>
54 <antcall target="wrap"/>
[14982]55 </target>
56
57</project>
Note: See TracBrowser for help on using the repository browser.