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

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

typo fix

File size: 5.2 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="drop-in-docs">
23 <echo level="info">Dropping gsdl docs into distribution</echo>
24 <copy todir="${gsdl.basedir}" overwrite="true">
25 <fileset dir="${rk.home}/greenstone2/docs"/>
26 </copy>
27 </target>
28
29 <target name="gsdl-set-version-numbers">
30
31 <echo level="info">Setting version in src/lib/gsdlconf.h</echo>
32 <rsr file="${gsdl.basedir}/common-src/src/lib/gsdlconf.h" pattern="(#define GSDL_VERSION) &quot;.*&quot;" replacement="$1 &quot;${version}&quot;" />
33
34 <echo level="info">Setting version in Install.sh</echo>
35 <rsr file="${gsdl.basedir}/Install.sh" pattern="(echo &quot;Version: ).*(&quot; .*)" replacement="$1${version}$2" />
36
37 <echo level="info">Setting version in etc/VERSION</echo>
38 <rsr file="${gsdl.basedir}/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}" />
39
40 <echo level="info">Changing date and version in the docs</echo>
41 <!-- en -->
42 <if>
43 <bool><available file="${gsdl.basedir}/distributions/web/READMEen.txt"/></bool>
44
45 <rsr file="${gsdl.basedir}/distributions/web/READMEen.txt">
46 <job pattern="^(Date\s*)(.*)" replacement="$1${month.default} ${current.year}" />
47 <job pattern="^(Version\s*)(.*)" replacement="$1${version}" />
48 </rsr>
49
50 <!--
51 commented out until these files are updated
52 <!- - ar - ->
53 <rsr file="${basedir}/distributions/web/READMEar.txt" pattern="(التاريخ : \s*)(.*)" replacement="$1${month.ar} ${current.year}" />
54 <rsr file="${basedir}/distributions/web/READMEar.txt" pattern="(النسخه : \s*)(.*)" replacement="$1${version}" />
55 <!- - es - ->
56 <rsr file="${basedir}/distributions/web/READMEes.txt" pattern="^(Fecha\s*)(.*)" replacement="$1${month.es} de ${current.year}" />
57 <rsr file="${basedir}/distributions/web/READMEes.txt" pattern="^(Versi.?n\s*)(.*)" replacement="$1${version}" />
58 <!- - fr - ->
59 <rsr file="${basedir}/distributions/web/READMEfr.txt" pattern="^(Date\s*)(.*)" replacement="$1${month.fr} ${current.year}" />
60 <rsr file="${basedir}/distributions/web/READMEfr.txt" pattern="^(Version\s*)(.*)" replacement="$1${version}" />
61 <!- - ru - ->
62 <rsr file="${basedir}/distributions/web/READMEru.txt" pattern="^(Дата\s*)(.*)" replacement="$1${month.ru} ${current.year}" />
63 <rsr file="${basedir}/distributions/web/READMEru.txt" pattern="^(ВерсОя\s*)(.*)" replacement="$1${version}" />
64 -->
65 </if>
66 </target>
67
68 <target name="insert-export-to-cd-package">
69 <mkdir dir="${gsdl.basedir}/bin/windows"/>
70 <get src="http://greenstone.org/release-snapshots/server.exe" dest="${gsdl.basedir}/bin/windows/server.exe"/>
71 <get src="http://svn.greenstone.org/other-projects/trunk/winbin/bin/Setup.exe" dest="${gsdl.basedir}/bin/windows/Setup.exe"/>
72 <get src="http://svn.greenstone.org/other-projects/trunk/winbin/bin/gssetup.exe" dest="${gsdl.basedir}/bin/windows/gssetup.exe"/>
73 </target>
74
75 <target name="create-binary-zip-linux">
76 <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
77 <exec dir="${basedir}" executable="cp"><arg line="-r distributions/web ${binzip.dir}"/></exec>
78 <exec dir="${basedir}" executable="cp"><arg line="${binzip.dir}/bin/${shell.os}/library distributions/Greenstone-${version}-${os.suffix}-binary/cgi-bin"/></exec>
79 <exec dir="${basedir}" executable="cp"><arg line="${binzip.dir}/bin/${shell.os}/oaiserver distributions/Greenstone-${version}-${os.suffix}-binary/cgi-bin"/></exec>
80
81 <!-- delete sourcecode -->
82 <delete dir="${binzip.dir}/common-src"/>
83 <delete dir="${binzip.dir}/build-src"/>
84 <delete dir="${binzip.dir}/runtime-src"/>
85
86 <!-- delete loose files -->
87 <delete>
88 <fileset
89 dir="${binzip.dir}"
90 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,config.h.in"
91 excludes="READMEen.txt"/>
92 </delete>
93
94 </target>
95
96 <target name="create-binary-zip-windows">
97 <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
98 <copy todir="${binzip.dir}">
99 <fileset dir="distributions/web"/>
100 </copy>
101 <copy todir="${binzip.dir}/cgi-bin">
102 <fileset dir="${binzip.dir}/bin/${shell.os}" includes="library.exe,oaiserver.exe"/>
103 </copy>
104
105 <!-- delete sourcecode -->
106 <delete dir="${binzip.dir}/common-src"/>
107 <delete dir="${binzip.dir}/build-src"/>
108 <delete dir="${binzip.dir}/runtime-src"/>
109
110 <!-- delete loose files -->
111 <delete>
112 <fileset dir="${binzip.dir}" includes="README*.txt,Uninstall.bat,Uninst.bat,uninst.jar,win32.mak,win32cfg.h,makegs2.bat" excludes="READMEen.txt"/>
113 </delete>
114 </target>
115
116 <target name="create-needed-empty-files">
117 <mkdir dir="${gsdl.basedir}/tmp"/>
118 <chmod dir="${gsdl.basedir}/tmp" perm="a+rwx"/>
119 <echo file="${gsdl.basedir}/etc/usage.txt"></echo>
120 </target>
121
122</project>
123
Note: See TracBrowser for help on using the repository browser.