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