[14982] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
[16453] | 2 | <project name="mark2-create-distribution" default="create-distribution">
|
---|
[14982] | 3 |
|
---|
| 4 | <target name="create-distribution">
|
---|
[17652] | 5 |
|
---|
[18929] | 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 -->
|
---|
[17833] | 10 | <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from rk2-targets -->
|
---|
[18929] | 11 |
|
---|
[17661] | 12 | <antcall target="export-imagemagick-darwin-binaries" />
|
---|
| 13 | <antcall target="export-ghostscript-darwin-binaries" />
|
---|
[18929] | 14 |
|
---|
| 15 | <antcall target="remove-unneeded-files"/>
|
---|
| 16 | <antcall target="strip-svn-dirs"><param name="dir" value="${basedir}/distributions/web"/></antcall>
|
---|
[18065] | 17 | <antcall target="create-needed-empty-files"><param name="gsdl.basedir" value="distributions/web"/></antcall>
|
---|
[17652] | 18 |
|
---|
[17996] | 19 | <antcall target="create-binary-zip-linux"/>
|
---|
| 20 |
|
---|
[14982] | 21 | </target>
|
---|
| 22 |
|
---|
[17661] | 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 |
|
---|
[15980] | 37 | <target name="drop-in-binaries">
|
---|
[16741] | 38 | <echo level="info">Dropping compiled binaries into distribution</echo>
|
---|
[18854] | 39 | <delete dir="distributions/web/bin/linux"/>
|
---|
| 40 | <delete dir="distributions/web/bin/darwin"/>
|
---|
[18874] | 41 | <!-- main binaries -->
|
---|
[17898] | 42 | <exec dir="${basedir}" executable="cp"><arg line="-r compiled/bin/darwin distributions/web/bin"/></exec>
|
---|
[18874] | 43 | <!--java binaries -->
|
---|
| 44 | <copy file="${basedir}/compiled/bin/java/LuceneWrapper.jar" todir="${basedir}/distributions/web/bin/java" />
|
---|
| 45 | <!--cgi binaries -->
|
---|
[18870] | 46 | <exec dir="${basedir}" executable="cp"><arg line="compiled/cgi-bin/library.cgi compiled/cgi-bin/oaiserver.cgi distributions/web/cgi-bin"/></exec>
|
---|
[18874] | 47 | <!-- apache -->
|
---|
[18705] | 48 | <exec dir="${basedir}" executable="cp"><arg line="-r compiled/apache-httpd distributions/web"/></exec>
|
---|
[18874] | 49 | <mkdir dir="${basedir}/distributions/web/etc/logs-gsi"/>
|
---|
[15980] | 50 | </target>
|
---|
| 51 |
|
---|
| 52 | <target name="drop-in-demo-collection">
|
---|
[16741] | 53 | <echo level="info">Dropping rebuilt demo collection into distribution</echo>
|
---|
| 54 | <delete dir="distributions/web/collect/demo" />
|
---|
[17898] | 55 | <exec dir="${basedir}" executable="cp"><arg line="-r compiled/collect/demo distributions/web/collect"/></exec>
|
---|
[15980] | 56 | </target>
|
---|
| 57 |
|
---|
[15956] | 58 | <target name="compile-gli">
|
---|
[16741] | 59 | <echo>Compiling gli...</echo>
|
---|
| 60 | <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makegli.sh"/>
|
---|
[14982] | 61 |
|
---|
[16741] | 62 | <echo>Creating jar...</echo>
|
---|
| 63 | <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makejar.sh"/>
|
---|
[15956] | 64 |
|
---|
[16741] | 65 | <echo>Cleaning up intermediate files...</echo>
|
---|
| 66 | <delete dir="${basedir}/distributions/web/gli/jar"/>
|
---|
| 67 | <delete dir="${basedir}/distributions/web/gli/classes/org"/>
|
---|
[15956] | 68 |
|
---|
[16741] | 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>
|
---|
[14982] | 73 | </target>
|
---|
| 74 |
|
---|
[17996] | 75 | <target name="remove-unneeded-files">
|
---|
[18929] | 76 | <delete dir="${basedir}/distributions/web/uninstaller" />
|
---|
[16741] | 77 | <delete file="${basedir}/distributions/web/gli/.greenstonestore" />
|
---|
[18049] | 78 | <delete><fileset dir="${basedir}/distributions/web" includes="win32.mak,win32cfg.h,Install.sh,Support.htm"/></delete>
|
---|
[16741] | 79 | <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.bat"/></delete>
|
---|
| 80 | <delete><fileset dir="${basedir}/distributions/web" includes="*.bat"/></delete>
|
---|
[17652] | 81 | <delete dir="${basedir}/distributions/web/common-src/packages/windows"/>
|
---|
| 82 | <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" />
|
---|
| 83 | </target>
|
---|
| 84 |
|
---|
[14982] | 85 | </project>
|
---|