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