[17950] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <!--
|
---|
| 3 | ..........................................................
|
---|
[19954] | 4 | July 2009
|
---|
| 5 | Source Release Kit for Greenstone3 (sork3)
|
---|
[17950] | 6 | Oran Fry
|
---|
| 7 | ..........................................................
|
---|
| 8 | -->
|
---|
| 9 |
|
---|
[19954] | 10 | <project name="sork3-build" default="sork3">
|
---|
[17950] | 11 |
|
---|
| 12 | <!-- CONSTANTS -->
|
---|
| 13 |
|
---|
[19039] | 14 | <!-- for the benefit of the shared scripts, set release-kit home -->
|
---|
[19954] | 15 | <property name="rk.name" value="sork3"/>
|
---|
| 16 | <property name="rk.home" value="${sork3.home}" />
|
---|
[17950] | 17 | <property name="rk.os" value="multi" />
|
---|
| 18 | <property name="os.suffix" value="AnyPlatform"/>
|
---|
| 19 |
|
---|
| 20 | <!-- IMPORT OTHER ANT SCRIPTS -->
|
---|
[21648] | 21 | <import file="${rk.home}/shared/core/ant-scripts/shared.xml"/>
|
---|
| 22 | <import file="${rk.home}/shared/greenstone3/ant-scripts/greenstone3-shared.xml"/>
|
---|
[17950] | 23 |
|
---|
| 24 | <!-- THE MAIN TARGET -->
|
---|
[19957] | 25 | <target name="sork3" depends="init">
|
---|
[21650] | 26 |
|
---|
| 27 | <!-- store the name of the distribution -->
|
---|
| 28 | <property name="dist.name" value="Greenstone-${version}-source-distribution"/>
|
---|
| 29 |
|
---|
| 30 | <!-- export the greenstone3 base code -->
|
---|
| 31 | <exec executable="svn"><arg value="export"/><arg value="${svn.root}/main/${branch.path}/greenstone3"/><arg value="distributions/${dist.name}"/></exec>
|
---|
| 32 |
|
---|
| 33 | <!-- set version numbers -->
|
---|
| 34 | <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/${dist.name}"/></antcall>
|
---|
| 35 |
|
---|
| 36 | <!-- run ant prepare -->
|
---|
| 37 | <ant dir="distributions/${dist.name}" target="prepare">
|
---|
[19957] | 38 | <property name="properties.accepted" value="true"/>
|
---|
| 39 | <property name="app.version" value="${version}"/>
|
---|
| 40 | </ant>
|
---|
[17950] | 41 |
|
---|
[21650] | 42 | <!-- set gli version numbers -->
|
---|
| 43 | <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/${dist.name}/gli"/></antcall>
|
---|
[19039] | 44 |
|
---|
[21650] | 45 | <!-- insert windows binaries -->
|
---|
| 46 | <delete dir="distributions/${dist.name}/gs2build/bin/windows"/>
|
---|
| 47 | <exec executable="svn"><arg value="export"/><arg value="${svn.root}/main/${branch.path}/binaries/windows/bin"/><arg value="distributions/${dist.name}/gs2build/bin/windows"/></exec>
|
---|
| 48 | <delete dir="distributions/${dist.name}/gs2build/bin/windows/imagemagick"/>
|
---|
| 49 | <delete dir="distributions/${dist.name}/gs2build/bin/windows/ghostscript"/>
|
---|
[19039] | 50 |
|
---|
[21650] | 51 | <!-- insert windows perl -->
|
---|
| 52 | <unzip src="${rk.home}/shared/windows/perl.zip" dest="distributions/${dist.name}/gs2build/bin/windows"/>
|
---|
[19039] | 53 |
|
---|
[21650] | 54 | <!-- clean up -->
|
---|
| 55 | <delete file="distributions/${dist.name}/gs2build/bin/linux/mgquery_old" />
|
---|
| 56 | <delete file="distributions/${dist.name}/build.properties.in"/>
|
---|
| 57 | <delete><fileset dir="distributions/${dist.name}/packages" includes="**/*.zip,**/*.tar.gz"/></delete>
|
---|
[17950] | 58 |
|
---|
[21650] | 59 | <!-- run greenstone3's own targets for fixing execute permissions -->
|
---|
| 60 | <ant dir="distributions/${dist.name}">
|
---|
| 61 | <target name="fix-execute-permissions"/>
|
---|
| 62 | <target name="fix-execute-permissions-source"/>
|
---|
| 63 | </ant>
|
---|
[20533] | 64 |
|
---|
[21650] | 65 | <!-- create the archives -->
|
---|
[17969] | 66 | <mkdir dir="products"/>
|
---|
[21650] | 67 | <delete file="products/${dist.name}.zip"/>
|
---|
| 68 | <zip destfile="products/${dist.name}.zip" basedir="distributions" includes="${dist.name}/**/*"/>
|
---|
[17973] | 69 | <exec dir="distributions" executable="tar">
|
---|
[21650] | 70 | <arg line="-czf ../products/${dist.name}.tar.gz ${dist.name}"/>
|
---|
[17973] | 71 | </exec>
|
---|
[21650] | 72 |
|
---|
| 73 | <!-- create the sourcecode component -->
|
---|
| 74 | <ant dir="." antfile="${rk.home}/kits/${rk.name}/ant-scripts/create-sourcecode-component.xml" target="create-sourcecode-component"/>
|
---|
[17969] | 75 | </target>
|
---|
[17950] | 76 |
|
---|
[21650] | 77 | <target name="properties" depends="core-properties"/>
|
---|
[19386] | 78 |
|
---|
[17950] | 79 | </project>
|
---|