source: main/trunk/release-kits/kits/derk/ant-scripts/build.xml@ 27636

Last change on this file since 27636 was 27636, checked in by ak19, 9 years ago

In order for the DEC's GS2 to compile, it needs gnome-lib. So build.xml now calls makegs2.sh to handle the compilation.

File size: 2.2 KB
Line 
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 -->
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 value="export"/>
21 <arg value="${svn.root}/documented-examples/${branch.path}"/>
22 <arg value="documented-examples"/>
23 </exec>
24 </if>
25
26 <!-- clean up -->
27 <delete file="documented-examples/text-for-translation.txt"/>
28
29 <!-- prepare-gs2build -->
30 <if>
31 <bool><not><available file="gs2build"/></not></bool>
32 <exec executable="svn">
33 <arg value="export"/>
34 <arg value="${svn.root}/main/${branch.path}/gs2build"/>
35 <arg value="gs2build"/>
36 </exec>
37 </if>
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 -->
40 <if><bool><not><available file="gs2build/Makefile"/></not></bool>
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>
45 <exec dir="gs2build" executable="make" failonerror="true"/>
46 <exec dir="gs2build" executable="make" failonerror="true"><arg value="install"/></exec>
47-->
48 </if>
49
50 <!-- build the collections -->
51 <exec dir="gs2build" executable="${rk.home}/kits/${rk.name}/resources/build.sh" failonerror="true"/>
52
53 <!-- create archives -->
54 <mkdir dir="products"/>
55 <zip destfile="products/Greenstone-documented-examples-${version}.zip" basedir="." includes="documented-examples/**/*"/>
56 <exec executable="tar">
57 <arg line="-czf products/Greenstone-documented-examples-${version}.tar.gz documented-examples"/>
58 </exec>
59
60 </target>
61
62 <target name="properties" depends="core-properties"/>
63
64</project>
Note: See TracBrowser for help on using the repository browser.