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

Last change on this file since 19661 was 19661, checked in by oranfry, 15 years ago

added code to help setup flax in a release

File size: 3.3 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk3-create-distribution" default="create-distribution">
3
4 <target name="create-distribution">
5
6 <!-- create distribution -->
7 <antcall target="export-greenstone3-gli" />
8 <antcall target="generate-build-properties"><param name="greenstone3.basedir" value="distributions/web"/></antcall>
9 <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/web" /></antcall>
10 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli" /></antcall>
11 <antcall target="insert-user-manual"/>
12 <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from rk3-targets -->
13
14 <ant target="create-distribution-1" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false">
15 <property name="app.version" value="${version}"/>
16 <property name="branch.path" value="${branch.path}"/>
17 <property name="branch.revision" value="${branch.revision}"/>
18 </ant>
19
20 <antcall target="insert-icon"/>
21
22 <ant target="create-distribution-2" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false">
23 <property name="app.version" value="${version}"/>
24 <property name="branch.path" value="${branch.path}"/>
25 <property name="branch.revision" value="${branch.revision}"/>
26 </ant>
27 <ant target="create-distribution-3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false">
28 <property name="app.version" value="${version}"/>
29 <property name="branch.path" value="${branch.path}"/>
30 <property name="branch.revision" value="${branch.revision}"/>
31 </ant>
32 <antcall target="copy-over-build-xml" />
33 <antcall target="insert-compiled-binaries"/>
34
35 </target>
36
37 <target name="export-greenstone3-gli">
38 <mkdir dir="distributions"/>
39 <delete dir="distributions/web"/>
40 <svn>
41 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distributions/web" revision="${branch.revision}"/>
42 <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli" revision="${branch.revision}"/>
43 </svn>
44 </target>
45
46 <target name="copy-over-build-xml">
47 <if><bool><istrue value="${execute}"/></bool>
48 <move file="distributions/web/modified-build.xml" tofile="distributions/web/build.xml"/>
49 </if>
50 </target>
51
52 <target name="insert-user-manual">
53 <copy file="compiled/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distributions/web/docs/manual/gs2_user_en.pdf"/>
54 </target>
55
56 <target name="insert-compiled-binaries">
57
58 <delete dir="distributions/web/lib/jni"/>
59 <copy todir="distributions/web/lib/jni"><fileset dir="compiled/lib/jni"/></copy>
60
61 <delete dir="distributions/web/gs2build/bin/windows"/>
62 <copy todir="distributions/web/gs2build/bin/windows"><fileset dir="compiled/gs2build/bin/windows"/></copy>
63
64 <delete dir="distributions/web/gs2build/bin/java"/>
65 <copy todir="distributions/web/gs2build/bin/java"><fileset dir="compiled/gs2build/bin/java"/></copy>
66
67 <copy todir="distributions/web/bin" file="compiled/bin/search4j.exe"/>
68 </target>
69
70 <target name="insert-icon">
71 <copy
72 file="${wirk3.home}/greenstone3/icon/icon.ico"
73 tofile="distributions/web/resources/images/gs3.ico"/>
74 </target>
75
76</project>
Note: See TracBrowser for help on using the repository browser.