source: release-kits/sork2/ant-scripts/build.xml@ 17950

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

a new release kit to create the source release

File size: 2.0 KB
RevLine 
[17950]1<?xml version="1.0" encoding="utf-8" ?>
2<!--
3 ..........................................................
4 November 2008
5 Source Release Kit for Greenstone2 (sork2)
6 Oran Fry
7 ..........................................................
8-->
9
10<project name="sork2-build" default="sork2">
11
12 <!-- CONSTANTS -->
13
14 <!-- for the benefit of the shared scripts, set release-kit home -->
15 <property name="rk.name" value="sork2"/>
16 <property name="rk.home" value="${sork2.home}" />
17 <property name="rk.os" value="multi" />
18 <property name="os.suffix" value="AnyPlatform"/>
19
20 <!-- IMPORT OTHER ANT SCRIPTS -->
21 <import file="shared-ant-scripts/init.xml"/>
22 <import file="shared-ant-scripts/operations-on-gli.xml"/>
23 <import file="../greenstone2/ant-scripts/rk2-targets.xml"/>
24
25 <!-- THE MAIN TARGET -->
26 <target name="sork2" depends="init">
27 <antcall target="export-gsdl-gli"><param name="dest" value="distributions/Greenstone-${version}-source"/></antcall>
28 <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/distributions/Greenstone-${version}-source"/></antcall>
29 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/Greenstone-${version}-source/gli"/></antcall>
30 <antcall target="tweak-files" />
31 <antcall target="insert-export-to-cd-package"><param name="gsdl.basedir" value="distributions/Greenstone-${version}-source"/></antcall><!-- from rk2-targets -->
32 <antcall target="create-archives"/>
33 </target>
34
35 <target name="tweak-files">
36 <rsr file="${basedir}/distributions/Greenstone-${version}-source/Install.sh" pattern="^(iscdrom=).*" replacement="$1&quot;no&quot;" />
37 </target>
38
39 <target name="create-archives">
40 <mkdir dir="products"/>
41 <zip destfile="products/Greenstone-${version}-source.zip" basedir="distributions" includes="Greenstone-${version}-source/**/*"/>
42 <tar destfile="products/Greenstone-${version}-source.tar.gz" basedir="distributions" includes="Greenstone-${version}-source/**/*" compression="gzip" longfile="gnu"/>
43 </target>
44
45
46
47</project>
Note: See TracBrowser for help on using the repository browser.