root/release-kits/lirk3/ant-scripts/create-distribution.xml @ 17652

Revision 17652, 3.3 KB (checked in by oranfry, 11 years ago)

started source releases

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