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

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

more work on sork to produce the single source component

File size: 5.9 KB
RevLine 
[17950]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
[19039]14 <!-- for the benefit of the shared scripts, set release-kit home -->
[17950]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 -->
[19006]21 <import file="../core/ant-scripts/init.xml"/>
22 <import file="../core/ant-scripts/operations-on-gli.xml"/>
[17950]23 <import file="../greenstone2/ant-scripts/rk2-targets.xml"/>
24
25 <!-- THE MAIN TARGET -->
26 <target name="sork2" depends="init">
[19459]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>
[17972]30 <antcall target="insert-winbin"/>
[19459]31 <antcall target="insert-windows-perl"><param name="gsdl.basedir" value="${basedir}/distributions/Greenstone-${version}-source-distribution"/></antcall>
[17950]32 <antcall target="tweak-files" />
33 <antcall target="create-archives"/>
[19386]34 <antcall target="create-sourcecode"/>
[17950]35 </target>
36
[19039]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
[17950]49 <target name="tweak-files">
[19459]50 <delete file="distributions/Greenstone-${version}-source-distribution/bin/linux/mgquery_old" />
[17950]51 </target>
52
[17968]53 <target name="insert-winbin">
[19459]54 <delete dir="distributions/Greenstone-${version}-source-distribution/bin/windows"/>
[17968]55 <svn>
[19459]56 <export srcurl="${svn.root}/other-projects/trunk/winbin/bin" destPath="distributions/Greenstone-${version}-source-distribution/bin/windows"/>
[17968]57 </svn>
[19459]58 <get src="http://greenstone.org/release-snapshots/server.exe" dest="distributions/Greenstone-${version}-source-distribution/bin/windows/server.exe"/>
[18011]59
[19459]60 <delete dir="distributions/Greenstone-${version}-source-distribution/bin/windows/imagemagick"/>
61 <delete dir="distributions/Greenstone-${version}-source-distribution/bin/windows/ghostscript"/>
[17968]62 </target>
[17950]63
[17969]64 <target name="create-archives">
65 <mkdir dir="products"/>
[17973]66 <exec dir="distributions" executable="tar">
[19459]67 <arg line="-czf ../products/Greenstone-${version}-source-distribution.tar.gz Greenstone-${version}-source-distribution"/>
[17973]68 </exec>
[17969]69 </target>
[17950]70
[19386]71 <target name="create-sourcecode">
72 <!-- create a directory for the sourcecode -->
[19459]73 <mkdir dir="distributions/Greenstone-${version}-source-component"/>
[19386]74
75 <!-- copy the files in -->
[19459]76 <exec dir="distributions/Greenstone-${version}-source-distribution" executable="cp">
[19386]77 <arg value="-r"/>
78
79 <!-- the bulk sourcecode -->
80 <arg value="build-src"/>
81 <arg value="common-src"/>
82 <arg value="runtime-src"/>
83
84 <!-- unix build files -->
85 <arg value="acconfig.h"/>
86 <arg value="aclocal.m4"/>
87 <arg value="config.sub"/>
88 <arg value="configtest.pl"/>
89 <arg value="configure"/>
90 <arg value="configure.in"/>
91 <arg value="install-sh"/>
92 <arg value="Makefile.in"/>
93 <arg value="micotest.cpp"/>
94 <arg value="config.h.in"/>
95 <arg value="Install.txt"/>
96
97 <!-- windows build files -->
98 <arg value="win32.mak"/>
99 <arg value="win32cfg.h"/>
100 <arg value="makegs2.bat"/>
101
102 <!-- destination -->
[19459]103 <arg value="../Greenstone-${version}-source-component"/>
[19386]104
105 </exec>
106
107 <!-- unzip some windows packages -->
[19459]108 <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"/>
109 <delete file="distributions/Greenstone-${version}-source-component/common-src/indexers/packages/windows/iconv/iconv.zip"/>
[19386]110
[19459]111 <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"/>
112 <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/windows/crypt/crypt.zip"/>
[19386]113
[19459]114 <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"/>
115 <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/windows/expat/expat.zip"/>
[19386]116
[19459]117 <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"/>
118 <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/windows/stlport/stlport.zip"/>
[19386]119
[19459]120 <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"/>
121 <delete file="distributions/Greenstone-${version}-source-component/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
[19386]122
123 <!-- tar it up -->
124 <exec dir="distributions" executable="tar">
[19459]125 <arg line="-czf ../products/Greenstone-${version}-source-component.tar.gz Greenstone-${version}-source-component"/>
[19386]126 </exec>
127 </target>
128
129
[17950]130</project>
Note: See TracBrowser for help on using the repository browser.