source: release-kits/lirk3/ant-scripts/create-distribution.xml@ 16172

Last change on this file since 16172 was 16172, checked in by oranfry, 16 years ago

made lirk3 work under the new shared code scheme

File size: 3.3 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="lirk3-create-distribution" default="create-distribution">
3
4
5 <target name="create-distribution">
6 <!-- create distribution -->
7 <addressedcall target="export-greenstone3" />
8 <addressedcall target="dist-set-version-number-property" />
9 <addressedcall target="create-distributions-1" />
10 <addressedcall target="create-distributions-2" />
11 <addressedcall target="create-distributions-3" />
12 <addressedcall target="copy-over-build-xml" />
13 <addressedcall target="insert-user-manual"/>
14 <addressedcall target="insert-compiled-binaries"/>
15 </target>
16
17 <target name="export-greenstone3">
18 <if><bool><istrue value="${execute}"/></bool>
19 <mkdir dir="distribution"/>
20 <delete dir="distribution/greenstone3"/>
21 <svn>
22 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3"/>
23 </svn>
24 </if>
25 </target>
26
27 <target name="dist-set-version-number-property">
28 <if><bool><istrue value="${execute}"/></bool>
29 <rsr file="distribution/greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" />
30 </if>
31 </target>
32
33 <target name="create-distributions-1">
34 <if><bool><istrue value="${execute}"/></bool>
35 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-1" inheritAll="false">
36 <property name="app.version" value="${version}"/>
37 <property name="branch.path" value="${branch.path}"/>
38 </ant>
39 </if>
40 </target>
41
42 <target name="create-distributions-2">
43 <if><bool><istrue value="${execute}"/></bool>
44 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-2" inheritAll="false">
45 <property name="app.version" value="${version}"/>
46 <property name="branch.path" value="${branch.path}"/>
47 </ant>
48 </if>
49 </target>
50
51 <target name="create-distributions-3">
52 <if><bool><istrue value="${execute}"/></bool>
53 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-3" inheritall="false">
54 <property name="app.version" value="${version}"/>
55 <property name="branch.path" value="${branch.path}"/>
56 </ant>
57 </if>
58 </target>
59
60 <target name="copy-over-build-xml">
61 <if><bool><istrue value="${execute}"/></bool>
62 <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
63 </if>
64 </target>
65
66 <target name="insert-user-manual">
67 <if><bool><istrue value="${execute}"/></bool>
68 <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>
69 </if>
70 </target>
71
72 <target name="insert-compiled-binaries">
73 <if><bool><istrue value="${execute}"/></bool>
74
75 <delete dir="distribution/greenstone3/lib/jni"/>
76 <exec executable="cp"><arg line="-r greenstone3/lib/jni distribution/greenstone3/lib"/></exec>
77
78 <delete dir="distribution/greenstone3/gs2build/bin/linux"/>
79 <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/linux distribution/greenstone3/gs2build/bin"/></exec>
80
81 <delete dir="distribution/greenstone3/gs2build/bin/java"/>
82 <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/java distribution/greenstone3/gs2build/bin"/></exec>
83
84 </if>
85 </target>
86
87
88
89
90</project>
Note: See TracBrowser for help on using the repository browser.