source: release-kits/sork2/ant-scripts/build.xml@ 19566

Last change on this file since 19566 was 19566, checked in by oranfry, 15 years ago

setup.sh is not reserved after all, it was just that another setup.sh was on the path meaning 'source setup.sh' ran that one

File size: 6.3 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!--
3 ..........................................................
4 November 2008
5 Source Release Kit for Greenstone2 (sork2)
6 Oran Fry
7 ..........................................................
8-->
9
10<project name="sork2-build" default="sork2">
11
12 <!-- CONSTANTS -->
13
14 <!-- for the benefit of the shared scripts, set release-kit home -->
15 <property name="rk.name" value="sork2"/>
16 <property name="rk.home" value="${sork2.home}" />
17 <property name="rk.os" value="multi" />
18 <property name="os.suffix" value="AnyPlatform"/>
19
20 <!-- IMPORT OTHER ANT SCRIPTS -->
21 <import file="../core/ant-scripts/init.xml"/>
22 <import file="../core/ant-scripts/operations-on-gli.xml"/>
23 <import file="../greenstone2/ant-scripts/rk2-targets.xml"/>
24
25 <!-- THE MAIN TARGET -->
26 <target name="sork2" depends="init">
27 <antcall target="export-gsdl-gli"><param name="dest" value="distributions/Greenstone-${version}-source-distribution"/></antcall>
28 <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/distributions/Greenstone-${version}-source-distribution"/></antcall>
29 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/Greenstone-${version}-source-distribution/gli"/></antcall>
30 <antcall target="insert-winbin"/>
31 <antcall target="insert-windows-perl"><param name="gsdl.basedir" value="${basedir}/distributions/Greenstone-${version}-source-distribution"/></antcall>
32 <antcall target="tweak-files" />
33 <antcall target="create-archives"/>
34 <antcall target="create-sourcecode"/>
35 </target>
36
37 <target name="properties">
38 <echo>Required Properties:</echo>
39 <echo>version the version string for the release</echo>
40 <echo/>
41
42 <echo>Optional Properties:</echo>
43 <echo>branch.path the branch of gsdl to make a release of. Eg: tags/2.81. Default: trunk.</echo>
44 <echo>branch.revision the revision of gsdl to make a release of. Eg: 18273. Default: HEAD.</echo>
45 <echo/>
46 </target>
47
48
49 <target name="tweak-files">
50 <delete file="distributions/Greenstone-${version}-source-distribution/bin/linux/mgquery_old" />
51 </target>
52
53 <target name="insert-winbin">
54 <delete dir="distributions/Greenstone-${version}-source-distribution/bin/windows"/>
55 <svn>
56 <export srcurl="${svn.root}/other-projects/trunk/winbin/bin" destPath="distributions/Greenstone-${version}-source-distribution/bin/windows"/>
57 </svn>
58 <get src="http://greenstone.org/release-snapshots/server.exe" dest="distributions/Greenstone-${version}-source-distribution/bin/windows/server.exe"/>
59
60 <delete dir="distributions/Greenstone-${version}-source-distribution/bin/windows/imagemagick"/>
61 <delete dir="distributions/Greenstone-${version}-source-distribution/bin/windows/ghostscript"/>
62 </target>
63
64 <target name="create-archives">
65 <mkdir dir="products"/>
66 <delete file="products/Greenstone-${version}-source-distribution.zip"/>
67 <zip destfile="products/Greenstone-${version}-source-distribution.zip" basedir="distributions" includes="Greenstone-${version}-source-distribution/**/*"/>
68 <exec dir="distributions" executable="tar">
69 <arg line="-czf ../products/Greenstone-${version}-source-distribution.tar.gz Greenstone-${version}-source-distribution"/>
70 </exec>
71 </target>
72
73 <target name="create-sourcecode">
74 <!-- create a directory for the sourcecode -->
75 <mkdir dir="distributions/Greenstone-${version}-source-component"/>
76
77 <!-- copy the files in -->
78 <exec dir="distributions/Greenstone-${version}-source-distribution" executable="cp">
79 <arg value="-r"/>
80
81 <!-- the bulk sourcecode -->
82 <arg value="build-src"/>
83 <arg value="common-src"/>
84 <arg value="runtime-src"/>
85
86 <!-- unix build files -->
87 <arg value="acconfig.h"/>
88 <arg value="aclocal.m4"/>
89 <arg value="config.sub"/>
90 <arg value="configtest.pl"/>
91 <arg value="configure"/>
92 <arg value="configure.in"/>
93 <arg value="install-sh"/>
94 <arg value="Makefile.in"/>
95 <arg value="micotest.cpp"/>
96 <arg value="config.h.in"/>
97 <arg value="Install.txt"/>
98
99 <!-- windows build files -->
100 <arg value="win32.mak"/>
101 <arg value="win32cfg.h"/>
102 <arg value="makegs2.bat"/>
103
104 <!-- destination -->
105 <arg value="../Greenstone-${version}-source-component"/>
106
107 </exec>
108
109 <!-- unzip some windows packages -->
110 <unzip src="distributions/Greenstone-${version}-source-component/common-src/indexers/packages/windows/iconv/iconv.zip" dest="distributions/Greenstone-${version}-source-component/common-src/indexers/packages/windows/iconv"/>
111 <delete file="distributions/Greenstone-${version}-source-component/common-src/indexers/packages/windows/iconv/iconv.zip"/>
112
113 <unzip src="distributions/Greenstone-${version}-source-component/common-src/packages/windows/crypt/crypt.zip" dest="distributions/Greenstone-${version}-source-component/common-src/packages/windows/crypt"/>
114 <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/windows/crypt/crypt.zip"/>
115
116 <unzip src="distributions/Greenstone-${version}-source-component/common-src/packages/windows/expat/expat.zip" dest="distributions/Greenstone-${version}-source-component/common-src/packages/windows/expat"/>
117 <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/windows/expat/expat.zip"/>
118
119 <unzip src="distributions/Greenstone-${version}-source-component/common-src/packages/windows/stlport/stlport.zip" dest="distributions/Greenstone-${version}-source-component/common-src/packages/windows/stlport"/>
120 <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/windows/stlport/stlport.zip"/>
121
122 <untar src="distributions/Greenstone-${version}-source-component/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz" dest="distributions/Greenstone-${version}-source-component/common-src/packages/sqlite" compression="gzip"/>
123 <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
124
125 <!-- archive it -->
126 <delete file="products/Greenstone-${version}-source-component.zip"/>
127 <zip destfile="products/Greenstone-${version}-source-component.zip" basedir="distributions" includes="Greenstone-${version}-source-component/**/*"/>
128 <exec dir="distributions" executable="tar">
129 <arg line="-czf ../products/Greenstone-${version}-source-component.tar.gz Greenstone-${version}-source-component"/>
130 </exec>
131 </target>
132
133
134</project>
Note: See TracBrowser for help on using the repository browser.