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

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

check out gli for distribution a little earlier in lirk3

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