[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 |
|
---|
[18769] | 40 | <antcall target="gsdl-set-dates-in-readmes"><param name="gsdl.basedir" value="${gsdl.basedir}"/></antcall>
|
---|
| 41 |
|
---|
| 42 | </target>
|
---|
| 43 |
|
---|
| 44 | <target name="gsdl-set-dates-in-readmes">
|
---|
[18052] | 45 | <echo level="info">Changing date and version in the docs</echo>
|
---|
[18769] | 46 |
|
---|
[18052] | 47 | <!-- en -->
|
---|
[18769] | 48 | <rsr file="${gsdl.basedir}/READMEen.txt">
|
---|
| 49 | <job pattern="^(Date\s*)(.*)" replacement="$1${month.default} ${current.year}" />
|
---|
| 50 | <job pattern="^(Version\s*)(.*)" replacement="$1${version}" />
|
---|
| 51 | </rsr>
|
---|
[18052] | 52 |
|
---|
[18769] | 53 | <!-- ar -->
|
---|
| 54 | <rsr file="${gsdl.basedir}/READMEar.txt">
|
---|
| 55 | <job pattern="(اÙتارÙØ® : \s*)(.*)" replacement="$1${month.ar} ${current.year}"/>
|
---|
| 56 | <job pattern="(اÙÙسخ٠: \s*)(.*)" replacement="$1${version}"/>
|
---|
| 57 | </rsr>
|
---|
[18065] | 58 |
|
---|
[18769] | 59 | <!-- es -->
|
---|
| 60 | <rsr file="${gsdl.basedir}/READMEes.txt">
|
---|
| 61 | <job pattern="^(Fecha\s*)(.*)" replacement="$1${month.es} de ${current.year}"/>
|
---|
| 62 | <job pattern="^(Versi.?n\s*)(.*)" replacement="$1${version}"/>
|
---|
| 63 | </rsr>
|
---|
| 64 |
|
---|
| 65 | <!-- fr -->
|
---|
| 66 | <rsr file="${gsdl.basedir}/READMEfr.txt">
|
---|
| 67 | <job pattern="^(Date\s*)(.*)" replacement="$1${month.fr} ${current.year}"/>
|
---|
| 68 | <job pattern="^(Version\s*)(.*)" replacement="$1${version}"/>
|
---|
| 69 | </rsr>
|
---|
| 70 |
|
---|
| 71 | <!-- ru -->
|
---|
| 72 | <rsr file="${gsdl.basedir}/READMEru.txt">
|
---|
| 73 | <job pattern="^(ÐаÑа\s*)(.*)" replacement="$1${month.ru} ${current.year}"/>
|
---|
| 74 | <job pattern="^(ÐеÑÑОÑ\s*)(.*)" replacement="$1${version}"/>
|
---|
| 75 | </rsr>
|
---|
| 76 |
|
---|
[17259] | 77 | </target>
|
---|
| 78 |
|
---|
[18769] | 79 |
|
---|
[17448] | 80 | <target name="insert-export-to-cd-package">
|
---|
[17953] | 81 | <mkdir dir="${gsdl.basedir}/bin/windows"/>
|
---|
| 82 | <get src="http://greenstone.org/release-snapshots/server.exe" dest="${gsdl.basedir}/bin/windows/server.exe"/>
|
---|
| 83 | <get src="http://svn.greenstone.org/other-projects/trunk/winbin/bin/Setup.exe" dest="${gsdl.basedir}/bin/windows/Setup.exe"/>
|
---|
| 84 | <get src="http://svn.greenstone.org/other-projects/trunk/winbin/bin/gssetup.exe" dest="${gsdl.basedir}/bin/windows/gssetup.exe"/>
|
---|
[17448] | 85 | </target>
|
---|
[17259] | 86 |
|
---|
[17996] | 87 | <target name="create-binary-zip-linux">
|
---|
| 88 | <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
|
---|
| 89 | <exec dir="${basedir}" executable="cp"><arg line="-r distributions/web ${binzip.dir}"/></exec>
|
---|
[18010] | 90 | <exec dir="${basedir}" executable="cp"><arg line="${binzip.dir}/bin/${shell.os}/library distributions/Greenstone-${version}-${os.suffix}-binary/cgi-bin"/></exec>
|
---|
| 91 | <exec dir="${basedir}" executable="cp"><arg line="${binzip.dir}/bin/${shell.os}/oaiserver distributions/Greenstone-${version}-${os.suffix}-binary/cgi-bin"/></exec>
|
---|
[17996] | 92 |
|
---|
| 93 | <!-- delete sourcecode -->
|
---|
| 94 | <delete dir="${binzip.dir}/common-src"/>
|
---|
| 95 | <delete dir="${binzip.dir}/build-src"/>
|
---|
| 96 | <delete dir="${binzip.dir}/runtime-src"/>
|
---|
| 97 |
|
---|
| 98 | <!-- delete loose files -->
|
---|
| 99 | <delete>
|
---|
[18005] | 100 | <fileset
|
---|
| 101 | dir="${binzip.dir}"
|
---|
[18008] | 102 | 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] | 103 | excludes="READMEen.txt"/>
|
---|
[17996] | 104 | </delete>
|
---|
| 105 |
|
---|
| 106 | </target>
|
---|
| 107 |
|
---|
| 108 | <target name="create-binary-zip-windows">
|
---|
[18003] | 109 | <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
|
---|
| 110 | <copy todir="${binzip.dir}">
|
---|
[17996] | 111 | <fileset dir="distributions/web"/>
|
---|
| 112 | </copy>
|
---|
[18003] | 113 | <copy todir="${binzip.dir}/cgi-bin">
|
---|
[18016] | 114 | <fileset dir="${binzip.dir}/bin/${shell.os}" includes="library.exe,oaiserver.exe"/>
|
---|
[17996] | 115 | </copy>
|
---|
[18016] | 116 |
|
---|
| 117 | <!-- delete sourcecode -->
|
---|
| 118 | <delete dir="${binzip.dir}/common-src"/>
|
---|
| 119 | <delete dir="${binzip.dir}/build-src"/>
|
---|
| 120 | <delete dir="${binzip.dir}/runtime-src"/>
|
---|
| 121 |
|
---|
| 122 | <!-- delete loose files -->
|
---|
[17996] | 123 | <delete>
|
---|
[18016] | 124 | <fileset dir="${binzip.dir}" includes="README*.txt,Uninstall.bat,Uninst.bat,uninst.jar,win32.mak,win32cfg.h,makegs2.bat" excludes="READMEen.txt"/>
|
---|
[17996] | 125 | </delete>
|
---|
| 126 | </target>
|
---|
| 127 |
|
---|
[18052] | 128 | <target name="create-needed-empty-files">
|
---|
| 129 | <mkdir dir="${gsdl.basedir}/tmp"/>
|
---|
| 130 | <chmod dir="${gsdl.basedir}/tmp" perm="a+rwx"/>
|
---|
| 131 | <echo file="${gsdl.basedir}/etc/usage.txt"></echo>
|
---|
| 132 | </target>
|
---|
| 133 |
|
---|
[16833] | 134 | </project>
|
---|
[18005] | 135 |
|
---|