1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="mark3-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="sh"/></antcall> <!-- from rk3-targets -->
|
---|
12 |
|
---|
13 | <ant target="create-distribution-1" antfile="${mark3.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 | </ant>
|
---|
17 |
|
---|
18 | <ant target="create-distribution-2" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false">
|
---|
19 | <property name="app.version" value="${version}"/>
|
---|
20 | <property name="branch.path" value="${branch.path}"/>
|
---|
21 | </ant>
|
---|
22 |
|
---|
23 | <ant target="create-distribution-3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false">
|
---|
24 | <property name="app.version" value="${version}"/>
|
---|
25 | <property name="branch.path" value="${branch.path}"/>
|
---|
26 | </ant>
|
---|
27 |
|
---|
28 | <antcall target="copy-over-build-xml" />
|
---|
29 | <antcall target="insert-compiled-binaries"/>
|
---|
30 | <antcall target="export-imagemagick-darwin-binaries" />
|
---|
31 | <antcall target="export-ghostscript-darwin-binaries" />
|
---|
32 | <antcall target="strip-svn-dirs"><param name="dir" value="distributions"/></antcall> <!-- from init -->
|
---|
33 | </target>
|
---|
34 |
|
---|
35 | <target name="export-greenstone3-gli">
|
---|
36 | <mkdir dir="distributions"/>
|
---|
37 | <delete dir="distributions/web"/>
|
---|
38 | <svn javahl="false">
|
---|
39 | <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distributions/web"/>
|
---|
40 | <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli"/>
|
---|
41 | </svn>
|
---|
42 | </target>
|
---|
43 |
|
---|
44 | <target name="export-imagemagick-darwin-binaries">
|
---|
45 | <delete dir="distributions/web/gs2build/bin/darwin/imagemagick"/>
|
---|
46 | <svn>
|
---|
47 | <export srcurl="${svn.root}/other-projects/trunk/mac-binaries/intel/imagemagick" destPath="distributions/web/gs2build/bin/darwin/imagemagick"/>
|
---|
48 | </svn>
|
---|
49 | </target>
|
---|
50 |
|
---|
51 | <target name="export-ghostscript-darwin-binaries">
|
---|
52 | <delete dir="distributions/web/gs2build/bin/darwin/ghostscript"/>
|
---|
53 | <svn>
|
---|
54 | <export srcurl="${svn.root}/other-projects/trunk/mac-binaries/intel/ghostscript" destPath="distributions/web/gs2build/bin/darwin/ghostscript"/>
|
---|
55 | </svn>
|
---|
56 | </target>
|
---|
57 |
|
---|
58 | <target name="copy-over-build-xml">
|
---|
59 | <move file="distributions/web/modified-build.xml" tofile="distributions/web/build.xml"/>
|
---|
60 | </target>
|
---|
61 |
|
---|
62 | <target name="insert-user-manual">
|
---|
63 | <copy file="compiled/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distributions/web/docs/manual/gs2_user_en.pdf"/>
|
---|
64 | </target>
|
---|
65 |
|
---|
66 | <target name="insert-compiled-binaries">
|
---|
67 | <delete dir="distributions/web/lib/jni"/>
|
---|
68 | <exec executable="cp"><arg line="-r compiled/lib/jni distributions/web/lib"/></exec>
|
---|
69 |
|
---|
70 | <delete dir="distributions/web/gs2build/bin/darwin"/>
|
---|
71 | <exec executable="cp"><arg line="-r compiled/gs2build/bin/darwin distributions/web/gs2build/bin"/></exec>
|
---|
72 |
|
---|
73 | <delete dir="distributions/web/gs2build/bin/java"/>
|
---|
74 | <exec executable="cp"><arg line="-r compiled/gs2build/bin/java distributions/web/gs2build/bin"/></exec>
|
---|
75 | <exec executable="cp"><arg line="compiled/bin/search4j distributions/web/bin"/></exec>
|
---|
76 | </target>
|
---|
77 |
|
---|
78 | </project>
|
---|