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

Revision 17523, 3.4 KB (checked in by oranfry, 11 years ago)

dont compile search4j and pass param to make-concrete task

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        <!-- create distribution -->
6        <antcall target="export-greenstone3-gli" />
7
8        <antcall target="greenstone3-set-version-numbers">
9            <param name="greenstone3basedir" value="${basedir}/distribution/greenstone3"/>
10        </antcall>
11
12        <antcall target="gli-set-version-numbers">
13            <param name="glibasedir" value="${basedir}/distribution/greenstone3/gli"/>
14        </antcall>
15
16        <ant target="create-distribution-1" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
17            <property name="app.version" value="${version}"/>
18            <property name="branch.path" value="${branch.path}"/>
19        </ant>
20
21        <ant target="create-distribution-2" antfile="${mark3.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        </ant>
25
26        <ant target="create-distribution-3" antfile="${mark3.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        </ant>
30
31        <antcall target="copy-over-build-xml" />
32        <antcall target="insert-user-manual"/>
33        <antcall target="insert-compiled-binaries"/>
34        <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from rk3-targets -->
35        <antcall target="rename-build-xml-for-transit"/>
36        <antcall target="strip-svn-dirs"><param name="dir" value="distribution/greenstone3"/></antcall> <!-- from init -->
37    </target>
38
39    <target name="export-greenstone3-gli">
40        <mkdir dir="distribution"/>
41        <delete dir="distribution/greenstone3"/>
42        <svn javahl="false">
43            <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3"/>
44            <export srcurl="${svn.root}/gli/${branch.path}" destPath="distribution/greenstone3/gli"/>
45        </svn>
46    </target>
47
48    <target name="dist-set-version-number-property">
49        <rsr
50            file="distribution/greenstone3/resources/java/global.properties.in"
51            pattern="(.*)@gsdl3version@(.*)"
52            replacement="$1${version}$2" />
53    </target>
54
55    <target name="copy-over-build-xml">
56        <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
57    </target>
58
59    <target name="insert-user-manual">
60        <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>
61    </target>
62
63    <target name="insert-compiled-binaries">
64        <delete dir="distribution/greenstone3/lib/jni"/>
65        <exec executable="cp"><arg line="-r greenstone3/lib/jni distribution/greenstone3/lib"/></exec>
66
67        <delete dir="distribution/greenstone3/gs2build/bin/darwin"/>
68        <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/darwin distribution/greenstone3/gs2build/bin"/></exec>
69
70        <delete dir="distribution/greenstone3/gs2build/bin/java"/>
71        <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/java distribution/greenstone3/gs2build/bin"/></exec>
72        <exec executable="cp"><arg line="greenstone3/bin/search4j distribution/greenstone3/bin"/></exec>
73    </target>
74
75    <target name="rename-build-xml-for-transit">
76        <move file="distribution/greenstone3/build.xml" tofile="distribution/greenstone3/greenstone3-build.xml"/>
77    </target>
78
79
80</project>
Note: See TracBrowser for help on using the browser.