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

Last change on this file since 14982 was 14982, checked in by oranfry, 14 years ago

initial import of LiRK3

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