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

Last change on this file was 37365, checked in by kjdon, 14 months ago

download the gnome-lib-minimal here, so we can use the svn trust-server-cert option, rather than relying on makegs2 to get it. code copied from rk3

File size: 3.7 KB
Line 
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 <!-- kjdon -->
41 <condition property="specific.os.type" value="${os.shell}-Lion" else="${os.shell}">
42 <and>
43 <contains string="${os.shell}" substring="darwin" casesensitive="false"/>
44 <matches pattern="^(10\.7\.[4-9]|10\.[8-9]|1[1-9]|[2-9])" string="${os.version}"/>
45 </and>
46 </condition>
47
48
49 <if>
50 <bool><not><available file="gs2build/ext/gnome-lib-minimal"/></not></bool>
51 <echo>EXPORTING GNOME LIB EXTENSION</echo>
52<echo>${svn.root}/gs2-extensions/gnome-lib/trunk/gnome-\
53lib-minimal-${specific.os.type}${arch}${extension-x64}.tar.gz</echo>
54 <exec executable="svn">
55 <arg line="${global-svn-args}"/>
56 <arg value="export"/>
57 <arg value="${svn.root}/gs2-extensions/gnome-lib/trunk/gnome-lib-minimal-${specific.os.type}${arch}${extension-x64}.tar.gz"/>
58 <arg value="gs2build/ext/gnome-lib-${specific.os.type}.tar.gz"/>
59 </exec>
60
61 <exec executable="tar" dir="gs2build/ext">
62 <arg value="xvzf"/>
63 <arg value="gnome-lib-${specific.os.type}.tar.gz"/>
64 </exec>
65
66 <exec executable="/bin/bash" dir="gs2build/ext/gnome-lib-minimal">
67 <arg value="-c"/>
68 <arg value="source setup.bash_old &amp;&amp; source devel.bash"/>
69 </exec>
70 <echo>DONE COMPILING GNOME LIB EXTENSION</echo>
71 </if>
72
73 <!-- to here-->
74 <!-- Nowadays need to get and compile gnome-lib in order for wvware to compile
75 So use the makegs2.sh script to get gnome-lib and compile gs2 -->
76 <if><bool><not><available file="gs2build/Makefile"/></not></bool>
77 <exec dir="gs2build" executable="./makegs2.sh" failonerror="true">
78 <arg value="gnome-lib" />
79 </exec>
80<!-- <exec dir="gs2build" executable="/bin/bash" failonerror="true"><arg value="./configure"/></exec>
81 <exec dir="gs2build" executable="make" failonerror="true"/>
82 <exec dir="gs2build" executable="make" failonerror="true"><arg value="install"/></exec>
83-->
84 </if>
85
86 <!-- build the collections -->
87 <exec dir="gs2build" executable="${rk.home}/kits/${rk.name}/resources/build.sh" failonerror="true"/>
88
89 <!-- create archives -->
90 <mkdir dir="products"/>
91 <zip destfile="products/Greenstone3-documented-examples-${version}.zip" basedir="." includes="documented-examples/**/*"/>
92 <exec executable="tar">
93 <arg line="-czf products/Greenstone3-documented-examples-${version}.tar.gz documented-examples"/>
94 </exec>
95
96 </target>
97
98 <target name="properties" depends="core-properties"/>
99
100</project>
Note: See TracBrowser for help on using the repository browser.