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

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

made wirk3 work with the new shared code scheme

File size: 3.7 KB
RevLine 
[15023]1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk3-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"/>
[15812]15 <addressedcall target="rename-build-xml-for-transit"/>
[15023]16 </target>
17
18 <target name="export-greenstone3">
19 <if><bool><istrue value="${execute}"/></bool>
20 <mkdir dir="distribution"/>
21 <delete dir="distribution/greenstone3"/>
22 <svn>
[15053]23 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3" revision="${branch.revision}"/>
[15023]24 </svn>
25 </if>
26 </target>
27
28 <target name="dist-set-version-number-property">
29 <if><bool><istrue value="${execute}"/></bool>
30 <rsr file="distribution/greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" />
31 </if>
32 </target>
33
34 <target name="create-distributions-1">
35 <if><bool><istrue value="${execute}"/></bool>
36 <ant antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-1" inheritAll="false">
37 <property name="app.version" value="${version}"/>
38 <property name="branch.path" value="${branch.path}"/>
39 </ant>
40 </if>
41 </target>
42
43 <target name="create-distributions-2">
44 <if><bool><istrue value="${execute}"/></bool>
[15095]45 <ant antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-2" inheritAll="false">
[15023]46 <property name="app.version" value="${version}"/>
47 <property name="branch.path" value="${branch.path}"/>
[15053]48 <property name="branch.revision" value="${branch.revision}"/>
[15023]49 </ant>
50 </if>
51 </target>
52
53 <target name="create-distributions-3">
54 <if><bool><istrue value="${execute}"/></bool>
[15095]55 <ant antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-3" inheritall="false">
[15023]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="copy-over-build-xml">
63 <if><bool><istrue value="${execute}"/></bool>
64 <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
65 </if>
66 </target>
67
68 <target name="insert-user-manual">
69 <if><bool><istrue value="${execute}"/></bool>
70 <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>
71 </if>
72 </target>
73
74 <target name="insert-compiled-binaries">
75 <if><bool><istrue value="${execute}"/></bool>
[15812]76
[15023]77 <delete dir="distribution/greenstone3/lib/jni"/>
[15053]78 <copy todir="distribution/greenstone3/lib/jni"><fileset dir="greenstone3/lib/jni"/></copy>
[15023]79
80 <delete dir="distribution/greenstone3/gs2build/bin/windows"/>
[15053]81 <copy todir="distribution/greenstone3/gs2build/bin/windows"><fileset dir="greenstone3/gs2build/bin/windows"/></copy>
[15812]82
[15023]83 <delete dir="distribution/greenstone3/gs2build/bin/java"/>
[15053]84 <copy todir="distribution/greenstone3/gs2build/bin/java"><fileset dir="greenstone3/gs2build/bin/java"/></copy>
[15812]85
86 </if>
87 </target>
[15023]88
[15812]89 <target name="rename-build-xml-for-transit">
90 <if><bool><istrue value="${execute}"/></bool>
91 <move file="distribution/greenstone3/build.xml" tofile="distribution/greenstone3/greenstone3-build.xml"/>
[15023]92 </if>
93 </target>
94
95</project>
Note: See TracBrowser for help on using the repository browser.