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

Last change on this file since 30131 was 21748, checked in by oranfry, 14 years ago

moved binary specific forwarding properties to rk3, and fixed sork3

File size: 3.3 KB
RevLine 
[17950]1<?xml version="1.0" encoding="utf-8" ?>
2<!--
3 ..........................................................
[19954]4 July 2009
5 Source Release Kit for Greenstone3 (sork3)
[17950]6 Oran Fry
7 ..........................................................
8-->
9
[19954]10<project name="sork3-build" default="sork3">
[17950]11
12 <!-- IMPORT OTHER ANT SCRIPTS -->
[21648]13 <import file="${rk.home}/shared/core/ant-scripts/shared.xml"/>
14 <import file="${rk.home}/shared/greenstone3/ant-scripts/greenstone3-shared.xml"/>
[17950]15
16 <!-- THE MAIN TARGET -->
[21652]17 <target name="sork3" depends="init,gs3-init">
[21650]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>
[21748]24 <antcall target="persist-forwarded-properties">
25 <param name="greenstone3basedir" value="distributions/${dist.name}"/>
26 </antcall>
[21650]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">
[19957]33 <property name="properties.accepted" value="true"/>
34 <property name="app.version" value="${version}"/>
[21748]35 <propertyset refid="forward.properties"/>
[19957]36 </ant>
[17950]37
[21650]38 <!-- set gli version numbers -->
39 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/${dist.name}/gli"/></antcall>
[19039]40
[21650]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"/>
[19039]46
[21650]47 <!-- insert windows perl -->
48 <unzip src="${rk.home}/shared/windows/perl.zip" dest="distributions/${dist.name}/gs2build/bin/windows"/>
[19039]49
[21650]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>
[17950]54
[21650]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"/>
[21748]59 <propertyset refid="forward.properties"/>
60 <property name="properties.accepted" value="true"/>
[21650]61 </ant>
[20533]62
[21650]63 <!-- create the archives -->
[17969]64 <mkdir dir="products"/>
[21650]65 <delete file="products/${dist.name}.zip"/>
66 <zip destfile="products/${dist.name}.zip" basedir="distributions" includes="${dist.name}/**/*"/>
[17973]67 <exec dir="distributions" executable="tar">
[21650]68 <arg line="-czf ../products/${dist.name}.tar.gz ${dist.name}"/>
[17973]69 </exec>
[21650]70
71 <!-- create the sourcecode component -->
[21748]72 <ant dir="${basedir}" antfile="${rk.home}/kits/${rk.name}/ant-scripts/create-sourcecode-component.xml" target="create-sourcecode-component"/>
[17969]73 </target>
[17950]74
[21652]75 <target name="properties" depends="core-properties,gs3-properties"/>
[19386]76
[17950]77</project>
Note: See TracBrowser for help on using the repository browser.