[16814] | 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 |
|
---|
[17703] | 12 | <property name="version.major" value="2"/>
|
---|
[16814] | 13 |
|
---|
[17958] | 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 |
|
---|
[18065] | 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 |
|
---|
[17898] | 29 | <target name="gsdl-set-version-numbers">
|
---|
[18052] | 30 |
|
---|
[17898] | 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) ".*"" replacement="$1 "${version}"" />
|
---|
[17259] | 33 |
|
---|
[17898] | 34 | <echo level="info">Setting version in Install.sh</echo>
|
---|
| 35 | <rsr file="${gsdl.basedir}/Install.sh" pattern="(echo "Version: ).*(" .*)" replacement="$1${version}$2" />
|
---|
[17259] | 36 |
|
---|
[17898] | 37 | <echo level="info">Setting version in etc/VERSION</echo>
|
---|
| 38 | <rsr file="${gsdl.basedir}/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}" />
|
---|
[18052] | 39 |
|
---|
| 40 | <echo level="info">Changing date and version in the docs</echo>
|
---|
| 41 | <!-- en -->
|
---|
[18065] | 42 | <if>
|
---|
[18069] | 43 | <bool><available file="${gsdl.basedir}/distributions/web/READMEen.txt"/></bool>
|
---|
[18052] | 44 |
|
---|
[18069] | 45 | <rsr file="${gsdl.basedir}/distributions/web/READMEen.txt">
|
---|
[18065] | 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>
|
---|
[17259] | 66 | </target>
|
---|
| 67 |
|
---|
[17448] | 68 | <target name="insert-export-to-cd-package">
|
---|
[17953] | 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"/>
|
---|
[17448] | 73 | </target>
|
---|
[17259] | 74 |
|
---|
[17996] | 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>
|
---|
[18010] | 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>
|
---|
[17996] | 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>
|
---|
[18005] | 88 | <fileset
|
---|
| 89 | dir="${binzip.dir}"
|
---|
[18008] | 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"
|
---|
[18005] | 91 | excludes="READMEen.txt"/>
|
---|
[17996] | 92 | </delete>
|
---|
| 93 |
|
---|
| 94 | </target>
|
---|
| 95 |
|
---|
| 96 | <target name="create-binary-zip-windows">
|
---|
[18003] | 97 | <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
|
---|
| 98 | <copy todir="${binzip.dir}">
|
---|
[17996] | 99 | <fileset dir="distributions/web"/>
|
---|
| 100 | </copy>
|
---|
[18003] | 101 | <copy todir="${binzip.dir}/cgi-bin">
|
---|
[18016] | 102 | <fileset dir="${binzip.dir}/bin/${shell.os}" includes="library.exe,oaiserver.exe"/>
|
---|
[17996] | 103 | </copy>
|
---|
[18016] | 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 -->
|
---|
[17996] | 111 | <delete>
|
---|
[18016] | 112 | <fileset dir="${binzip.dir}" includes="README*.txt,Uninstall.bat,Uninst.bat,uninst.jar,win32.mak,win32cfg.h,makegs2.bat" excludes="READMEen.txt"/>
|
---|
[17996] | 113 | </delete>
|
---|
| 114 | </target>
|
---|
| 115 |
|
---|
[18052] | 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 |
|
---|
[16833] | 122 | </project>
|
---|
[18005] | 123 |
|
---|