source: release-kits/mark2/ant-scripts/create-distribution.xml@ 20401

Last change on this file since 20401 was 20401, checked in by oranfry, 13 years ago

bug fix in installer, and a few minor fixes

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