[14982] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
[16655] | 2 | <project name="mark3-create-distribution" default="create-distribution">
|
---|
[14982] | 3 |
|
---|
| 4 | <target name="create-distribution">
|
---|
[17652] | 5 |
|
---|
[14982] | 6 | <!-- create distribution -->
|
---|
[17348] | 7 | <antcall target="export-greenstone3-gli" />
|
---|
[17898] | 8 | <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/web"/></antcall>
|
---|
| 9 | <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli"/></antcall>
|
---|
[17652] | 10 | <antcall target="insert-user-manual"/>
|
---|
[19463] | 11 | <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from init -->
|
---|
| 12 | <antcall target="insert-uninstaller-jar"/> <!-- from rk3-targets -->
|
---|
[16269] | 13 |
|
---|
[17898] | 14 | <ant target="create-distribution-1" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false">
|
---|
[16744] | 15 | <property name="app.version" value="${version}"/>
|
---|
| 16 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 17 | </ant>
|
---|
[14982] | 18 |
|
---|
[17898] | 19 | <ant target="create-distribution-2" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false">
|
---|
[16744] | 20 | <property name="app.version" value="${version}"/>
|
---|
| 21 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 22 | </ant>
|
---|
[14982] | 23 |
|
---|
[17898] | 24 | <ant target="create-distribution-3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false">
|
---|
[16744] | 25 | <property name="app.version" value="${version}"/>
|
---|
| 26 | <property name="branch.path" value="${branch.path}"/>
|
---|
| 27 | </ant>
|
---|
[14982] | 28 |
|
---|
[16744] | 29 | <antcall target="copy-over-build-xml" />
|
---|
| 30 | <antcall target="insert-compiled-binaries"/>
|
---|
[17662] | 31 | <antcall target="export-imagemagick-darwin-binaries" />
|
---|
| 32 | <antcall target="export-ghostscript-darwin-binaries" />
|
---|
[17898] | 33 | <antcall target="strip-svn-dirs"><param name="dir" value="distributions"/></antcall> <!-- from init -->
|
---|
[16243] | 34 | </target>
|
---|
| 35 |
|
---|
[17348] | 36 | <target name="export-greenstone3-gli">
|
---|
[17898] | 37 | <mkdir dir="distributions"/>
|
---|
| 38 | <delete dir="distributions/web"/>
|
---|
[17078] | 39 | <svn javahl="false">
|
---|
[17898] | 40 | <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distributions/web"/>
|
---|
| 41 | <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli"/>
|
---|
[16744] | 42 | </svn>
|
---|
[14982] | 43 | </target>
|
---|
[17662] | 44 |
|
---|
| 45 | <target name="export-imagemagick-darwin-binaries">
|
---|
[17898] | 46 | <delete dir="distributions/web/gs2build/bin/darwin/imagemagick"/>
|
---|
[17662] | 47 | <svn>
|
---|
[17898] | 48 | <export srcurl="${svn.root}/other-projects/trunk/mac-binaries/intel/imagemagick" destPath="distributions/web/gs2build/bin/darwin/imagemagick"/>
|
---|
[17662] | 49 | </svn>
|
---|
| 50 | </target>
|
---|
| 51 |
|
---|
| 52 | <target name="export-ghostscript-darwin-binaries">
|
---|
[17898] | 53 | <delete dir="distributions/web/gs2build/bin/darwin/ghostscript"/>
|
---|
[17662] | 54 | <svn>
|
---|
[17898] | 55 | <export srcurl="${svn.root}/other-projects/trunk/mac-binaries/intel/ghostscript" destPath="distributions/web/gs2build/bin/darwin/ghostscript"/>
|
---|
[17662] | 56 | </svn>
|
---|
| 57 | </target>
|
---|
[14982] | 58 |
|
---|
| 59 | <target name="copy-over-build-xml">
|
---|
[17898] | 60 | <move file="distributions/web/modified-build.xml" tofile="distributions/web/build.xml"/>
|
---|
[14982] | 61 | </target>
|
---|
| 62 |
|
---|
| 63 | <target name="insert-user-manual">
|
---|
[17898] | 64 | <copy file="compiled/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distributions/web/docs/manual/gs2_user_en.pdf"/>
|
---|
[14982] | 65 | </target>
|
---|
| 66 |
|
---|
| 67 | <target name="insert-compiled-binaries">
|
---|
[17898] | 68 | <delete dir="distributions/web/lib/jni"/>
|
---|
| 69 | <exec executable="cp"><arg line="-r compiled/lib/jni distributions/web/lib"/></exec>
|
---|
[14982] | 70 |
|
---|
[17898] | 71 | <delete dir="distributions/web/gs2build/bin/darwin"/>
|
---|
| 72 | <exec executable="cp"><arg line="-r compiled/gs2build/bin/darwin distributions/web/gs2build/bin"/></exec>
|
---|
[14982] | 73 |
|
---|
[17898] | 74 | <delete dir="distributions/web/gs2build/bin/java"/>
|
---|
| 75 | <exec executable="cp"><arg line="-r compiled/gs2build/bin/java distributions/web/gs2build/bin"/></exec>
|
---|
| 76 | <exec executable="cp"><arg line="compiled/bin/search4j distributions/web/bin"/></exec>
|
---|
[16744] | 77 | </target>
|
---|
[14982] | 78 |
|
---|
| 79 | </project>
|
---|