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