root/release-kits/wirk3/ant-scripts/create-distribution.xml @ 17786

Revision 17786, 3.5 KB (checked in by oranfry, 11 years ago)

shifted the responsibility for the source release to the linux release kit. Made the source release contain a single component with the core and sourcecode mixed together

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk3-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}/distribution/greenstone3" /></antcall>
9        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution/greenstone3/gli" /></antcall>
10        <antcall target="insert-user-manual"/>
11
12        <ant target="create-distribution-1" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
13            <property name="app.version" value="${version}"/>
14            <property name="branch.path" value="${branch.path}"/>
15            <property name="branch.revision" value="${branch.revision}"/>
16        </ant>
17
18        <antcall target="insert-icon"/>
19        <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from rk3-targets -->
20
21        <ant target="create-distribution-2" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
22            <property name="app.version" value="${version}"/>
23            <property name="branch.path" value="${branch.path}"/>
24            <property name="branch.revision" value="${branch.revision}"/>
25        </ant>
26        <ant target="create-distribution-3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
27            <property name="app.version" value="${version}"/>
28            <property name="branch.path" value="${branch.path}"/>
29            <property name="branch.revision" value="${branch.revision}"/>
30        </ant>
31        <antcall target="copy-over-build-xml" />
32        <antcall target="insert-compiled-binaries"/>
33
34    </target>
35
36    <target name="export-greenstone3-gli">
37        <mkdir dir="distribution"/>
38        <delete dir="distribution/greenstone3"/>
39        <svn>
40            <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3" revision="${branch.revision}"/>
41            <export srcurl="${svn.root}/gli/${branch.path}" destPath="distribution/greenstone3/gli" revision="${branch.revision}"/>
42        </svn>
43    </target>
44
45    <target name="copy-over-build-xml">
46        <if><bool><istrue value="${execute}"/></bool>
47            <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
48        </if>
49    </target>
50
51    <target name="insert-user-manual">
52        <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>
53    </target>
54
55    <target name="insert-compiled-binaries">
56
57        <delete dir="distribution/greenstone3/lib/jni"/>
58        <copy todir="distribution/greenstone3/lib/jni"><fileset dir="greenstone3/lib/jni"/></copy>
59       
60        <delete dir="distribution/greenstone3/gs2build/bin/windows"/>
61        <copy todir="distribution/greenstone3/gs2build/bin/windows"><fileset dir="greenstone3/gs2build/bin/windows"/></copy>
62
63        <delete dir="distribution/greenstone3/gs2build/bin/java"/>
64        <copy todir="distribution/greenstone3/gs2build/bin/java"><fileset dir="greenstone3/gs2build/bin/java"/></copy>
65
66        <copy todir="distribution/greenstone3/bin" file="greenstone3/bin/search4j.exe"/>
67    </target>
68   
69    <target name="insert-icon">
70        <copy
71            file="${wirk3.home}/greenstone3/icon/icon.ico"
72            tofile="distribution/greenstone3/resources/images/gs3.ico"/>
73    </target>
74
75    <target name="rename-build-xml-for-transit">
76        <move
77            file="distribution/greenstone3/build.xml"
78            tofile="distribution/greenstone3/greenstone3-build.xml" />
79    </target>
80
81</project>
Note: See TracBrowser for help on using the browser.