root/main/trunk/release-kits/kits/sork3/ant-scripts/build.xml @ 21748

Revision 21748, 3.3 KB (checked in by oranfry, 10 years ago)

moved binary specific forwarding properties to rk3, and fixed sork3

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!--
3        ..........................................................
4        July 2009
5        Source Release Kit for Greenstone3 (sork3)
6        Oran Fry
7        ..........................................................
8-->
9
10<project name="sork3-build" default="sork3">
11   
12    <!-- IMPORT OTHER ANT SCRIPTS -->
13    <import file="${rk.home}/shared/core/ant-scripts/shared.xml"/>
14    <import file="${rk.home}/shared/greenstone3/ant-scripts/greenstone3-shared.xml"/>
15
16    <!-- THE MAIN TARGET -->
17    <target name="sork3" depends="init,gs3-init">
18
19        <!-- store the name of the distribution -->
20        <property name="dist.name" value="Greenstone-${version}-source-distribution"/>
21
22        <!-- export the greenstone3 base code -->
23        <exec executable="svn"><arg value="export"/><arg value="${svn.root}/main/${branch.path}/greenstone3"/><arg value="distributions/${dist.name}"/></exec>
24        <antcall target="persist-forwarded-properties">
25            <param name="greenstone3basedir" value="distributions/${dist.name}"/>
26        </antcall>
27
28        <!-- set version numbers -->
29        <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/${dist.name}"/></antcall>
30
31        <!-- run ant prepare -->
32        <ant dir="distributions/${dist.name}" target="prepare">
33            <property name="properties.accepted" value="true"/>
34            <property name="app.version" value="${version}"/>
35            <propertyset refid="forward.properties"/>
36        </ant>
37
38        <!-- set gli version numbers -->
39        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/${dist.name}/gli"/></antcall>
40
41        <!-- insert windows binaries -->
42        <delete dir="distributions/${dist.name}/gs2build/bin/windows"/>
43        <exec executable="svn"><arg value="export"/><arg value="${svn.root}/main/${branch.path}/binaries/windows/bin"/><arg value="distributions/${dist.name}/gs2build/bin/windows"/></exec>
44        <delete dir="distributions/${dist.name}/gs2build/bin/windows/imagemagick"/>
45        <delete dir="distributions/${dist.name}/gs2build/bin/windows/ghostscript"/>
46
47        <!-- insert windows perl -->
48        <unzip src="${rk.home}/shared/windows/perl.zip" dest="distributions/${dist.name}/gs2build/bin/windows"/>
49
50        <!-- clean up -->
51        <delete file="distributions/${dist.name}/gs2build/bin/linux/mgquery_old" />
52        <delete file="distributions/${dist.name}/build.properties.in"/>
53        <delete><fileset dir="distributions/${dist.name}/packages" includes="**/*.zip,**/*.tar.gz"/></delete>
54
55        <!-- run greenstone3's own targets for fixing execute permissions -->
56        <ant dir="distributions/${dist.name}">
57            <target name="fix-execute-permissions"/>
58            <target name="fix-execute-permissions-source"/>
59            <propertyset refid="forward.properties"/>
60            <property name="properties.accepted" value="true"/>
61        </ant>
62
63        <!-- create the archives -->
64        <mkdir dir="products"/>
65        <delete file="products/${dist.name}.zip"/>
66        <zip destfile="products/${dist.name}.zip"  basedir="distributions" includes="${dist.name}/**/*"/>
67        <exec dir="distributions" executable="tar">
68            <arg line="-czf ../products/${dist.name}.tar.gz ${dist.name}"/>
69        </exec>
70
71        <!-- create the sourcecode component -->
72        <ant dir="${basedir}" antfile="${rk.home}/kits/${rk.name}/ant-scripts/create-sourcecode-component.xml" target="create-sourcecode-component"/>
73    </target>
74
75    <target name="properties" depends="core-properties,gs3-properties"/>
76
77</project>
Note: See TracBrowser for help on using the browser.