[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 |
|
---|
[17898] | 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) ".*"" replacement="$1 "${version}"" />
|
---|
[17259] | 25 |
|
---|
[17898] | 26 | <echo level="info">Setting version in Install.sh</echo>
|
---|
| 27 | <rsr file="${gsdl.basedir}/Install.sh" pattern="(echo "Version: ).*(" .*)" replacement="$1${version}$2" />
|
---|
[17259] | 28 |
|
---|
[17898] | 29 | <echo level="info">Setting version in etc/VERSION</echo>
|
---|
| 30 | <rsr file="${gsdl.basedir}/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}" />
|
---|
[17259] | 31 | </target>
|
---|
| 32 |
|
---|
[17448] | 33 | <target name="insert-export-to-cd-package">
|
---|
[17953] | 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"/>
|
---|
[17448] | 38 | </target>
|
---|
[17259] | 39 |
|
---|
[17996] | 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>
|
---|
[18005] | 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"/>
|
---|
[17996] | 57 | </delete>
|
---|
| 58 |
|
---|
| 59 | </target>
|
---|
| 60 |
|
---|
| 61 | <target name="create-binary-zip-windows">
|
---|
[18003] | 62 | <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
|
---|
| 63 | <copy todir="${binzip.dir}">
|
---|
[17996] | 64 | <fileset dir="distributions/web"/>
|
---|
| 65 | </copy>
|
---|
[18003] | 66 | <copy todir="${binzip.dir}/cgi-bin">
|
---|
| 67 | <fileset dir="${binzip.dir}/bin/${shell.os}">
|
---|
| 68 | <includes name="library.exe,oaiservr.exe"/>
|
---|
[17996] | 69 | </fileset>
|
---|
| 70 | </copy>
|
---|
| 71 | <delete>
|
---|
[18003] | 72 | <fileset dir="${binzip.dir}">
|
---|
[17996] | 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"/>
|
---|
[18005] | 81 | <include name="Uninstaller.bat,uninst.bat,uninst.jar,win32.mak,win32cfg.h"/>
|
---|
[17996] | 82 | </fileset>
|
---|
| 83 | </delete>
|
---|
| 84 | </target>
|
---|
| 85 |
|
---|
[16833] | 86 | </project>
|
---|
[18005] | 87 |
|
---|