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

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

rename build.xml on its way into the jar, and then back to the original name on its way back out. This stops a naming conflict with ant-installers own build.xml file. Also, now put the concrete value of @gsdlhome@ into gs2build\setup.bat at install time.

File size: 3.9 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 <addressedcall target="rename-build-xml-for-transit"/>
25 </target>
26
27
28
29 <!--
30
31 second level targets
32
33 -->
34
35 <target name="export-greenstone3">
36 <if><bool><istrue value="${execute}"/></bool>
37 <mkdir dir="distribution"/>
38 <delete dir="distribution/greenstone3"/>
39 <svn>
40 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3" revision="${branch.revision}"/>
41 </svn>
42 </if>
43 </target>
44
45 <target name="dist-set-version-number-property">
46 <if><bool><istrue value="${execute}"/></bool>
47 <rsr file="distribution/greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" />
48 </if>
49 </target>
50
51 <target name="create-distributions-1">
52 <if><bool><istrue value="${execute}"/></bool>
53 <ant antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-1" 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="create-distributions-2">
61 <if><bool><istrue value="${execute}"/></bool>
62 <ant antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-2" inheritAll="false">
63 <property name="app.version" value="${version}"/>
64 <property name="branch.path" value="${branch.path}"/>
65 <property name="branch.revision" value="${branch.revision}"/>
66 </ant>
67 </if>
68 </target>
69
70 <target name="create-distributions-3">
71 <if><bool><istrue value="${execute}"/></bool>
72 <ant antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-3" inheritall="false">
73 <property name="app.version" value="${version}"/>
74 <property name="branch.path" value="${branch.path}"/>
75 </ant>
76 </if>
77 </target>
78
79 <target name="copy-over-build-xml">
80 <if><bool><istrue value="${execute}"/></bool>
81 <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
82 </if>
83 </target>
84
85 <target name="insert-user-manual">
86 <if><bool><istrue value="${execute}"/></bool>
87 <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>
88 </if>
89 </target>
90
91 <target name="insert-compiled-binaries">
92 <if><bool><istrue value="${execute}"/></bool>
93
94 <delete dir="distribution/greenstone3/lib/jni"/>
95 <copy todir="distribution/greenstone3/lib/jni"><fileset dir="greenstone3/lib/jni"/></copy>
96
97 <delete dir="distribution/greenstone3/gs2build/bin/windows"/>
98 <copy todir="distribution/greenstone3/gs2build/bin/windows"><fileset dir="greenstone3/gs2build/bin/windows"/></copy>
99
100 <delete dir="distribution/greenstone3/gs2build/bin/java"/>
101 <copy todir="distribution/greenstone3/gs2build/bin/java"><fileset dir="greenstone3/gs2build/bin/java"/></copy>
102
103 </if>
104 </target>
105
106 <target name="rename-build-xml-for-transit">
107 <if><bool><istrue value="${execute}"/></bool>
108 <move file="distribution/greenstone3/build.xml" tofile="distribution/greenstone3/greenstone3-build.xml"/>
109 </if>
110 </target>
111
112</project>
Note: See TracBrowser for help on using the repository browser.