source: release-kits/wirk3/ant-scripts/create-distribution.xml@ 15053

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

lots of work on wirk3

File size: 3.7 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="wirk3-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" revision="${branch.revision}"/>
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="${wirk3.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="${wirk3.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 <property name="branch.revision" value="${branch.revision}"/>
65 </ant>
66 </if>
67 </target>
68
69 <target name="create-distributions-3">
70 <if><bool><istrue value="${execute}"/></bool>
71 <ant antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-3" inheritall="false">
72 <property name="app.version" value="${version}"/>
73 <property name="branch.path" value="${branch.path}"/>
74 </ant>
75 </if>
76 </target>
77
78 <target name="copy-over-build-xml">
79 <if><bool><istrue value="${execute}"/></bool>
80 <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
81 </if>
82 </target>
83
84 <target name="insert-user-manual">
85 <if><bool><istrue value="${execute}"/></bool>
86 <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>
87 </if>
88 </target>
89
90 <target name="insert-compiled-binaries">
91 <if><bool><istrue value="${execute}"/></bool>
92
93 <delete dir="distribution/greenstone3/lib/jni"/>
94 <copy todir="distribution/greenstone3/lib/jni"><fileset dir="greenstone3/lib/jni"/></copy>
95
96 <delete dir="distribution/greenstone3/gs2build/bin/windows"/>
97 <copy todir="distribution/greenstone3/gs2build/bin/windows"><fileset dir="greenstone3/gs2build/bin/windows"/></copy>
98
99 <delete dir="distribution/greenstone3/gs2build/bin/java"/>
100 <copy todir="distribution/greenstone3/gs2build/bin/java"><fileset dir="greenstone3/gs2build/bin/java"/></copy>
101
102 </if>
103 </target>
104
105
106
107
108</project>
Note: See TracBrowser for help on using the repository browser.