source: release-kits/lirk2/ant-scripts/create-distribution.xml@ 18283

Last change on this file since 18283 was 18283, checked in by oranfry, 16 years ago

use new libsearch4j spec and unzip sqlite package on all platrforms

File size: 4.0 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="lirk2-create-distribution" default="create-distribution">
3
4 <target name="create-distribution">
5
6 <antcall target="export-gsdl-gli"><param name="dest" value="distributions/web"/></antcall>
7 <antcall target="drop-in-docs"><param name="gsdl.basedir" value="distributions/web"/></antcall>
8 <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/distributions/web"/></antcall>
9 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli"/></antcall>
10 <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from rk2-targets -->
11 <antcall target="dist-unzip-packages"/>
12 <antcall target="drop-in-demo-collection" />
13 <antcall target="insert-export-to-cd-package"><param name="gsdl.basedir" value="distributions/web"/></antcall> <!-- from rk2-targets -->
14 <antcall target="drop-in-binaries" />
15 <antcall target="export-imagemagick-linux-binaries" />
16 <antcall target="compile-gli" />
17 <antcall target="remove-unneeded-files" />
18 <antcall target="create-needed-empty-files"><param name="gsdl.basedir" value="distributions/web"/></antcall>
19
20 <antcall target="create-binary-zip-linux"/>
21
22 </target>
23
24 <target name="drop-in-binaries">
25 <echo level="info">Dropping compiled binaries into distribution</echo>
26 <delete dir="distributions/web/bin/linux" />
27 <exec dir="${basedir}" executable="cp"><arg line="-r compiled/bin/linux distributions/web/bin"/></exec>
28 <exec dir="${basedir}" executable="cp"><arg line="compiled/cgi-bin/library distributions/web/cgi-bin"/></exec>
29 <exec dir="${basedir}" executable="cp"><arg line="compiled/cgi-bin/oaiserver distributions/web/cgi-bin"/></exec>
30 <copy file="${basedir}/compiled/bin/java/LuceneWrapper.jar" todir="${basedir}/distributions/web/bin/java" />
31 </target>
32
33 <target name="drop-in-demo-collection">
34 <echo level="info">Dropping rebuilt demo collection into distribution</echo>
35 <delete dir="distributions/web/collect/demo" />
36 <exec dir="${basedir}" executable="cp"><arg line="-r compiled/collect/demo distributions/web/collect"/></exec>
37 </target>
38
39 <target name="export-imagemagick-linux-binaries">
40 <delete dir="distributions/web/bin/linux/imagemagick"/>
41 <svn>
42 <export srcurl="${svn.root}/other-projects/trunk/linux-binaries/imagemagick" destPath="distributions/web/bin/linux/imagemagick"/>
43 </svn>
44 </target>
45
46 <target name="compile-gli">
47 <echo>Compiling gli...</echo>
48 <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makegli.sh"/>
49
50 <echo>Creating jar...</echo>
51 <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makejar.sh"/>
52
53 <echo>Cleaning up intermediate files...</echo>
54 <delete dir="${basedir}/distributions/web/gli/jar"/>
55 <delete dir="${basedir}/distributions/web/gli/classes/org"/>
56
57 <echo>Putting gli server jar in a better place</echo>
58 <exec dir="${basedir}/distributions/web" executable="mv" failonerror="true">
59 <arg line="gli/GLIServer.jar bin/java" />
60 </exec>
61 </target>
62
63 <target name="dist-unzip-packages">
64 <untar src="${basedir}/distributions/web/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz" dest="${basedir}/distributions/web/common-src/packages/sqlite" compression="gzip"/>
65 <delete file="${basedir}/distributions/web/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
66 </target>
67
68
69 <target name="remove-unneeded-files">
70 <delete file="${basedir}/distributions/web/gli/.greenstonestore" />
71 <delete><fileset dir="${basedir}/distributions/web" includes="win32.mak,win32cfg.h,Install.sh,Support.htm"/></delete>
72 <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" />
73 <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.bat"/></delete>
74 <delete><fileset dir="${basedir}/distributions/web" includes="*.bat"/></delete>
75 <delete dir="${basedir}/distributions/web/common-src/packages/windows"/>
76 </target>
77
78</project>
Note: See TracBrowser for help on using the repository browser.