source: release-kits/shared/greenstone2/ant-scripts/rk2-targets.xml@ 18005

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

right files to right place with right permissions in binary and source zips and binary installer

File size: 3.4 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!--
3 ..........................................................
4 August 2008
5 Targets for Greenstone2 release kits
6 Oran Fry
7 ..........................................................
8-->
9
10<project name="rk2-targets">
11
12 <property name="version.major" value="2"/>
13
14 <target name="export-gsdl-gli">
15 <delete dir="${dest}"/>
16 <svn>
17 <export srcurl="${svn.root}/gsdl/${branch.path}" destPath="${dest}"/>
18 <export srcurl="${svn.root}/gli/${branch.path}" destPath="${dest}/gli"/>
19 </svn>
20 </target>
21
22 <target name="gsdl-set-version-numbers">
23 <echo level="info">Setting version in src/lib/gsdlconf.h</echo>
24 <rsr file="${gsdl.basedir}/common-src/src/lib/gsdlconf.h" pattern="(#define GSDL_VERSION) &quot;.*&quot;" replacement="$1 &quot;${version}&quot;" />
25
26 <echo level="info">Setting version in Install.sh</echo>
27 <rsr file="${gsdl.basedir}/Install.sh" pattern="(echo &quot;Version: ).*(&quot; .*)" replacement="$1${version}$2" />
28
29 <echo level="info">Setting version in etc/VERSION</echo>
30 <rsr file="${gsdl.basedir}/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}" />
31 </target>
32
33 <target name="insert-export-to-cd-package">
34 <mkdir dir="${gsdl.basedir}/bin/windows"/>
35 <get src="http://greenstone.org/release-snapshots/server.exe" dest="${gsdl.basedir}/bin/windows/server.exe"/>
36 <get src="http://svn.greenstone.org/other-projects/trunk/winbin/bin/Setup.exe" dest="${gsdl.basedir}/bin/windows/Setup.exe"/>
37 <get src="http://svn.greenstone.org/other-projects/trunk/winbin/bin/gssetup.exe" dest="${gsdl.basedir}/bin/windows/gssetup.exe"/>
38 </target>
39
40 <target name="create-binary-zip-linux">
41 <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
42 <exec dir="${basedir}" executable="cp"><arg line="-r distributions/web ${binzip.dir}"/></exec>
43 <exec dir="${basedir}" executable="cp"><arg line="${binzip.dir}/bin/linux/library distributions/Greenstone-${version}-${os.suffix}-binary/cgi-bin"/></exec>
44 <exec dir="${basedir}" executable="cp"><arg line="${binzip.dir}/bin/linux/oaiserver distributions/Greenstone-${version}-${os.suffix}-binary/cgi-bin"/></exec>
45
46 <!-- delete sourcecode -->
47 <delete dir="${binzip.dir}/common-src"/>
48 <delete dir="${binzip.dir}/build-src"/>
49 <delete dir="${binzip.dir}/runtime-src"/>
50
51 <!-- delete loose files -->
52 <delete>
53 <fileset
54 dir="${binzip.dir}"
55 includes="README*.txt,Uninstall.sh,uninst.jar,acconfig.h,aclocal.m4,config.guess,config.sub,configtest.pl,configure,configure.in,install-sh,Makefile.in,micotest.cpp"
56 excludes="READMEen.txt"/>
57 </delete>
58
59 </target>
60
61 <target name="create-binary-zip-windows">
62 <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
63 <copy todir="${binzip.dir}">
64 <fileset dir="distributions/web"/>
65 </copy>
66 <copy todir="${binzip.dir}/cgi-bin">
67 <fileset dir="${binzip.dir}/bin/${shell.os}">
68 <includes name="library.exe,oaiservr.exe"/>
69 </fileset>
70 </copy>
71 <delete>
72 <fileset dir="${binzip.dir}">
73 <include name="common-src/**/*"/>
74 <include name="common-src"/>
75 <include name="build-src/**/*"/>
76 <include name="build-src"/>
77 <include name="runtime-src/**/*"/>
78 <include name="runtime-src"/>
79 <include name="README*.txt"/>
80 <exclude name="READMEen.txt"/>
81 <include name="Uninstaller.bat,uninst.bat,uninst.jar,win32.mak,win32cfg.h"/>
82 </fileset>
83 </delete>
84 </target>
85
86</project>
87
Note: See TracBrowser for help on using the repository browser.