[20721] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <!--
|
---|
| 3 | ..........................................................
|
---|
| 4 | September 2009
|
---|
| 5 | Release Kit for Greenstone2 (rk2)
|
---|
| 6 | Oran Fry
|
---|
| 7 | ..........................................................
|
---|
| 8 | -->
|
---|
| 9 |
|
---|
| 10 | <project name="rk2-build" default="rk2">
|
---|
| 11 |
|
---|
| 12 | <!-- IMPORT OTHER ANT SCRIPTS -->
|
---|
[21394] | 13 | <import file="${rk.home}/shared/core/ant-scripts/init.xml"/>
|
---|
| 14 | <import file="${rk.home}/shared/core/ant-scripts/operations-on-gli.xml"/>
|
---|
| 15 | <import file="${rk.home}/shared/greenstone2/ant-scripts/rk2-targets.xml"/>
|
---|
[20721] | 16 |
|
---|
| 17 | <import file="compile.xml"/>
|
---|
| 18 | <import file="create-components.xml"/>
|
---|
[21623] | 19 | <import file="${rk.home}/shared/core/ant-scripts/create-installer.xml"/>
|
---|
[20721] | 20 | <import file="wrap.xml"/>
|
---|
| 21 | <import file="create-cdrom-components.xml"/>
|
---|
| 22 |
|
---|
[21311] | 23 | <import file="components.xml"/>
|
---|
| 24 |
|
---|
[20721] | 25 | <!-- THE MAIN TARGET -->
|
---|
[21623] | 26 | <target name="rk2" depends="init,gs2-init,compile,create-components,create-installer,wrap,create-cdrom-components"/>
|
---|
[20721] | 27 |
|
---|
| 28 | <target name="properties">
|
---|
| 29 | <echo>Required Properties:</echo>
|
---|
| 30 | <echo>version the version string for the release</echo>
|
---|
| 31 | <echo/>
|
---|
| 32 | <echo>Optional Properties:</echo>
|
---|
[21311] | 33 | <echo>branch.path the branch of Greenstone to make a release of. Eg: tags/2.81. Default: trunk.</echo>
|
---|
| 34 | <echo>branch.revision the revision of Greenstone to make a release of. Eg: 18273. Default: HEAD.</echo>
|
---|
[20721] | 35 | <echo/>
|
---|
| 36 | </target>
|
---|
| 37 |
|
---|
[21394] | 38 | <!-- TODO: Move the targets below to the xml file that calls it -->
|
---|
| 39 |
|
---|
| 40 | <target name="create-binary-zip-unix">
|
---|
| 41 | <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
|
---|
| 42 |
|
---|
| 43 | <delete dir="${binzip.dir}"/>
|
---|
| 44 | <exec dir="${basedir}" executable="cp"><arg line="-r distributions/web ${binzip.dir}"/></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,config.h.in"
|
---|
| 56 | excludes="READMEen.txt"/>
|
---|
| 57 | </delete>
|
---|
| 58 |
|
---|
| 59 | </target>
|
---|
| 60 |
|
---|
| 61 | <target name="dist-unzip-packages">
|
---|
| 62 | <untar src="${basedir}/distributions/web/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz" dest="${basedir}/distributions/web/common-src/packages/sqlite" compression="gzip"/>
|
---|
| 63 | <delete file="${basedir}/distributions/web/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
|
---|
| 64 | </target>
|
---|
| 65 |
|
---|
| 66 | <target name="copy-greenstone2-installer-files">
|
---|
| 67 | <!-- the installer descriptors -->
|
---|
| 68 | <copy todir="installer" file="${rk.home}/kits/rk2/installer/antinstall-config.xml" overwrite="true"/>
|
---|
[21510] | 69 | <copy todir="installer" file="${rk.home}/kits/rk2/installer/build.xml" overwrite="true"/>
|
---|
[21394] | 70 | </target>
|
---|
| 71 |
|
---|
[20721] | 72 | </project>
|
---|