[18999] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <!--
|
---|
| 3 | ..........................................................
|
---|
| 4 | April 2009
|
---|
| 5 | Documented Example Release Kit (derk)
|
---|
| 6 | Oran Fry
|
---|
| 7 | ..........................................................
|
---|
| 8 | -->
|
---|
| 9 |
|
---|
| 10 | <project name="derk-build" default="derk">
|
---|
| 11 |
|
---|
| 12 | <!-- IMPORT OTHER ANT SCRIPTS -->
|
---|
[21648] | 13 | <import file="${rk.home}/shared/core/ant-scripts/shared.xml"/>
|
---|
[18999] | 14 |
|
---|
| 15 | <!-- THE MAIN TARGET -->
|
---|
[19001] | 16 | <target name="derk" depends="init">
|
---|
[21651] | 17 | <!-- export the documented examples -->
|
---|
| 18 | <if><bool><not><available file="documented-examples"/></not></bool>
|
---|
[21649] | 19 | <exec executable="svn">
|
---|
| 20 | <arg value="export"/>
|
---|
| 21 | <arg value="${svn.root}/documented-examples/${branch.path}"/>
|
---|
| 22 | <arg value="documented-examples"/>
|
---|
| 23 | </exec>
|
---|
[19028] | 24 | </if>
|
---|
[18999] | 25 |
|
---|
[21651] | 26 | <!-- clean up -->
|
---|
[19790] | 27 | <delete file="documented-examples/text-for-translation.txt"/>
|
---|
| 28 |
|
---|
[21651] | 29 | <!-- prepare-gs2build -->
|
---|
[19028] | 30 | <if>
|
---|
| 31 | <bool><not><available file="gs2build"/></not></bool>
|
---|
[21649] | 32 | <exec executable="svn">
|
---|
| 33 | <arg value="export"/>
|
---|
| 34 | <arg value="${svn.root}/main/${branch.path}/gs2build"/>
|
---|
| 35 | <arg value="gs2build"/>
|
---|
| 36 | </exec>
|
---|
[19028] | 37 | </if>
|
---|
[27636] | 38 | <!-- Nowadays need to get and compile gnome-lib in order for wvware to compile
|
---|
| 39 | So use the makegs2.sh script to get gnome-lib and compile gs2 -->
|
---|
[21651] | 40 | <if><bool><not><available file="gs2build/Makefile"/></not></bool>
|
---|
[27636] | 41 | <exec dir="gs2build" executable="./makegs2.sh" failonerror="true">
|
---|
| 42 | <arg value="gnome-lib" />
|
---|
| 43 | </exec>
|
---|
| 44 | <!-- <exec dir="gs2build" executable="/bin/bash" failonerror="true"><arg value="./configure"/></exec>
|
---|
[19131] | 45 | <exec dir="gs2build" executable="make" failonerror="true"/>
|
---|
| 46 | <exec dir="gs2build" executable="make" failonerror="true"><arg value="install"/></exec>
|
---|
[27636] | 47 | -->
|
---|
[19131] | 48 | </if>
|
---|
[19028] | 49 |
|
---|
[21651] | 50 | <!-- build the collections -->
|
---|
[21749] | 51 | <exec dir="gs2build" executable="${rk.home}/kits/${rk.name}/resources/build.sh" failonerror="true"/>
|
---|
[19028] | 52 |
|
---|
[21651] | 53 | <!-- create archives -->
|
---|
[18999] | 54 | <mkdir dir="products"/>
|
---|
[19566] | 55 | <zip destfile="products/Greenstone-documented-examples-${version}.zip" basedir="." includes="documented-examples/**/*"/>
|
---|
[19001] | 56 | <exec executable="tar">
|
---|
[19131] | 57 | <arg line="-czf products/Greenstone-documented-examples-${version}.tar.gz documented-examples"/>
|
---|
[18999] | 58 | </exec>
|
---|
[21651] | 59 |
|
---|
[18999] | 60 | </target>
|
---|
| 61 |
|
---|
[21651] | 62 | <target name="properties" depends="core-properties"/>
|
---|
| 63 |
|
---|
[18999] | 64 | </project>
|
---|