source: main/trunk/release-kits/kits/sork3/ant-scripts/build.xml@ 21650

Last change on this file since 21650 was 21650, checked in by oranfry, 12 years ago

tidied up the source code release-kits

File size: 3.3 KB
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 <!-- CONSTANTS -->
13
14 <!-- for the benefit of the shared scripts, set release-kit home -->
15 <property name="rk.name" value="sork3"/>
16 <property name="rk.home" value="${sork3.home}" />
17 <property name="rk.os" value="multi" />
18 <property name="os.suffix" value="AnyPlatform"/>
19
20 <!-- IMPORT OTHER ANT SCRIPTS -->
21 <import file="${rk.home}/shared/core/ant-scripts/shared.xml"/>
22 <import file="${rk.home}/shared/greenstone3/ant-scripts/greenstone3-shared.xml"/>
23
24 <!-- THE MAIN TARGET -->
25 <target name="sork3" depends="init">
26
27 <!-- store the name of the distribution -->
28 <property name="dist.name" value="Greenstone-${version}-source-distribution"/>
29
30 <!-- export the greenstone3 base code -->
31 <exec executable="svn"><arg value="export"/><arg value="${svn.root}/main/${branch.path}/greenstone3"/><arg value="distributions/${dist.name}"/></exec>
32
33 <!-- set version numbers -->
34 <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/${dist.name}"/></antcall>
35
36 <!-- run ant prepare -->
37 <ant dir="distributions/${dist.name}" target="prepare">
38 <property name="properties.accepted" value="true"/>
39 <property name="app.version" value="${version}"/>
40 </ant>
41
42 <!-- set gli version numbers -->
43 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/${dist.name}/gli"/></antcall>
44
45 <!-- insert windows binaries -->
46 <delete dir="distributions/${dist.name}/gs2build/bin/windows"/>
47 <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>
48 <delete dir="distributions/${dist.name}/gs2build/bin/windows/imagemagick"/>
49 <delete dir="distributions/${dist.name}/gs2build/bin/windows/ghostscript"/>
50
51 <!-- insert windows perl -->
52 <unzip src="${rk.home}/shared/windows/perl.zip" dest="distributions/${dist.name}/gs2build/bin/windows"/>
53
54 <!-- clean up -->
55 <delete file="distributions/${dist.name}/gs2build/bin/linux/mgquery_old" />
56 <delete file="distributions/${dist.name}/build.properties.in"/>
57 <delete><fileset dir="distributions/${dist.name}/packages" includes="**/*.zip,**/*.tar.gz"/></delete>
58
59 <!-- run greenstone3's own targets for fixing execute permissions -->
60 <ant dir="distributions/${dist.name}">
61 <target name="fix-execute-permissions"/>
62 <target name="fix-execute-permissions-source"/>
63 </ant>
64
65 <!-- create the archives -->
66 <mkdir dir="products"/>
67 <delete file="products/${dist.name}.zip"/>
68 <zip destfile="products/${dist.name}.zip" basedir="distributions" includes="${dist.name}/**/*"/>
69 <exec dir="distributions" executable="tar">
70 <arg line="-czf ../products/${dist.name}.tar.gz ${dist.name}"/>
71 </exec>
72
73 <!-- create the sourcecode component -->
74 <ant dir="." antfile="${rk.home}/kits/${rk.name}/ant-scripts/create-sourcecode-component.xml" target="create-sourcecode-component"/>
75 </target>
76
77 <target name="properties" depends="core-properties"/>
78
79</project>
Note: See TracBrowser for help on using the repository browser.