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

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

dont try to create the source distibution anymore as that is done by sork

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