root/release-kits/mark3/ant-scripts/create-distribution.xml @ 19463

Revision 19463, 3.6 KB (checked in by oranfry, 10 years ago)

make sure the uninstaller jar file makes it into the dist for greenstone3 distributions

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