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