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

Last change on this file since 20928 was 20928, checked in by oranfry, 12 years ago

use the systems own svn client to check things out, not svnant

File size: 3.9 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 <exec executable="svn">
23 <arg value="export"/>
24 <arg value="${svn.root}/other-projects/trunk/mac-binaries/intel/imagemagick"/>
25 <arg value="distributions/web/bin/darwin/imagemagick"/>
26 </exec>
27 </target>
28
29 <target name="export-ghostscript-darwin-binaries">
30 <delete dir="distributions/web/bin/darwin/ghostscript"/>
31 <exec executable="svn">
32 <arg value="export"/>
33 <arg value="${svn.root}/other-projects/trunk/mac-binaries/intel/ghostscript"/>
34 <arg value="distributions/web/bin/darwin/ghostscript"/>
35 </exec>
36 </target>
37
38 <target name="drop-in-binaries">
39 <echo level="info">Dropping compiled binaries into distribution</echo>
40 <delete dir="distributions/web/bin/linux"/>
41 <delete dir="distributions/web/bin/darwin"/>
42 <!-- main binaries -->
43 <exec dir="${basedir}" executable="cp"><arg line="-r compiled/bin/darwin distributions/web/bin"/></exec>
44 <!--java binaries -->
45 <copy file="${basedir}/compiled/bin/java/LuceneWrapper.jar" todir="${basedir}/distributions/web/bin/java" />
46 <!--cgi binaries -->
47 <exec dir="${basedir}" executable="cp"><arg line="compiled/cgi-bin/library.cgi compiled/cgi-bin/oaiserver.cgi distributions/web/cgi-bin"/></exec>
48 <!-- apache -->
49 <exec dir="${basedir}" executable="cp"><arg line="-r compiled/apache-httpd distributions/web"/></exec>
50 <mkdir dir="${basedir}/distributions/web/etc/logs-gsi"/>
51 </target>
52
53 <target name="drop-in-demo-collection">
54 <echo level="info">Dropping rebuilt demo collection into distribution</echo>
55 <delete dir="distributions/web/collect/demo" />
56 <exec dir="${basedir}" executable="cp"><arg line="-r compiled/collect/demo distributions/web/collect"/></exec>
57 </target>
58
59 <target name="compile-gli">
60 <echo>Compiling gli...</echo>
61 <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makegli.sh"/>
62
63 <echo>Creating jar...</echo>
64 <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makejar.sh"/>
65
66 <echo>Cleaning up intermediate files...</echo>
67 <delete dir="${basedir}/distributions/web/gli/jar"/>
68 <delete dir="${basedir}/distributions/web/gli/classes/org"/>
69
70 <echo>Putting gli server jar in a better place</echo>
71 <exec dir="${basedir}/distributions/web" executable="mv" failonerror="true">
72 <arg line="gli/GLIServer.jar bin/java" />
73 </exec>
74 </target>
75
76 <target name="remove-unneeded-files">
77 <delete dir="${basedir}/distributions/web/uninstaller" />
78 <delete file="${basedir}/distributions/web/gli/.greenstonestore" />
79 <delete><fileset dir="${basedir}/distributions/web" includes="win32.mak,win32cfg.h,Install.sh,Support.htm"/></delete>
80 <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.bat"/></delete>
81 <delete><fileset dir="${basedir}/distributions/web" includes="*.bat"/></delete>
82 <delete dir="${basedir}/distributions/web/common-src/packages/windows"/>
83 <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" />
84 </target>
85
86</project>
Note: See TracBrowser for help on using the repository browser.