[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 | <!-- IMPORT OTHER ANT SCRIPTS -->
|
---|
[21648] | 13 | <import file="${rk.home}/shared/core/ant-scripts/shared.xml"/>
|
---|
| 14 | <import file="${rk.home}/shared/greenstone3/ant-scripts/greenstone3-shared.xml"/>
|
---|
[17950] | 15 |
|
---|
| 16 | <!-- THE MAIN TARGET -->
|
---|
[21652] | 17 | <target name="sork3" depends="init,gs3-init">
|
---|
[21650] | 18 |
|
---|
| 19 | <!-- store the name of the distribution -->
|
---|
| 20 | <property name="dist.name" value="Greenstone-${version}-source-distribution"/>
|
---|
| 21 |
|
---|
| 22 | <!-- export the greenstone3 base code -->
|
---|
| 23 | <exec executable="svn"><arg value="export"/><arg value="${svn.root}/main/${branch.path}/greenstone3"/><arg value="distributions/${dist.name}"/></exec>
|
---|
| 24 |
|
---|
| 25 | <!-- set version numbers -->
|
---|
| 26 | <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/${dist.name}"/></antcall>
|
---|
| 27 |
|
---|
| 28 | <!-- run ant prepare -->
|
---|
| 29 | <ant dir="distributions/${dist.name}" target="prepare">
|
---|
[19957] | 30 | <property name="properties.accepted" value="true"/>
|
---|
| 31 | <property name="app.version" value="${version}"/>
|
---|
| 32 | </ant>
|
---|
[17950] | 33 |
|
---|
[21650] | 34 | <!-- set gli version numbers -->
|
---|
| 35 | <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/${dist.name}/gli"/></antcall>
|
---|
[19039] | 36 |
|
---|
[21650] | 37 | <!-- insert windows binaries -->
|
---|
| 38 | <delete dir="distributions/${dist.name}/gs2build/bin/windows"/>
|
---|
| 39 | <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>
|
---|
| 40 | <delete dir="distributions/${dist.name}/gs2build/bin/windows/imagemagick"/>
|
---|
| 41 | <delete dir="distributions/${dist.name}/gs2build/bin/windows/ghostscript"/>
|
---|
[19039] | 42 |
|
---|
[21650] | 43 | <!-- insert windows perl -->
|
---|
| 44 | <unzip src="${rk.home}/shared/windows/perl.zip" dest="distributions/${dist.name}/gs2build/bin/windows"/>
|
---|
[19039] | 45 |
|
---|
[21650] | 46 | <!-- clean up -->
|
---|
| 47 | <delete file="distributions/${dist.name}/gs2build/bin/linux/mgquery_old" />
|
---|
| 48 | <delete file="distributions/${dist.name}/build.properties.in"/>
|
---|
| 49 | <delete><fileset dir="distributions/${dist.name}/packages" includes="**/*.zip,**/*.tar.gz"/></delete>
|
---|
[17950] | 50 |
|
---|
[21650] | 51 | <!-- run greenstone3's own targets for fixing execute permissions -->
|
---|
| 52 | <ant dir="distributions/${dist.name}">
|
---|
| 53 | <target name="fix-execute-permissions"/>
|
---|
| 54 | <target name="fix-execute-permissions-source"/>
|
---|
| 55 | </ant>
|
---|
[20533] | 56 |
|
---|
[21650] | 57 | <!-- create the archives -->
|
---|
[17969] | 58 | <mkdir dir="products"/>
|
---|
[21650] | 59 | <delete file="products/${dist.name}.zip"/>
|
---|
| 60 | <zip destfile="products/${dist.name}.zip" basedir="distributions" includes="${dist.name}/**/*"/>
|
---|
[17973] | 61 | <exec dir="distributions" executable="tar">
|
---|
[21650] | 62 | <arg line="-czf ../products/${dist.name}.tar.gz ${dist.name}"/>
|
---|
[17973] | 63 | </exec>
|
---|
[21650] | 64 |
|
---|
| 65 | <!-- create the sourcecode component -->
|
---|
| 66 | <ant dir="." antfile="${rk.home}/kits/${rk.name}/ant-scripts/create-sourcecode-component.xml" target="create-sourcecode-component"/>
|
---|
[17969] | 67 | </target>
|
---|
[17950] | 68 |
|
---|
[21652] | 69 | <target name="properties" depends="core-properties,gs3-properties"/>
|
---|
[19386] | 70 |
|
---|
[17950] | 71 | </project>
|
---|