source: release-kits/mark3/ant-scripts/create-distribution.xml@ 17898

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

Standardised names of directories used in release kits

  • gsdl and greenstone3 -> compiled
  • distribution and distributions -> distributions
  • greenstone3 and web -> web

And, expect more specifically named properties files, e.g., lirk3-build.properties, wirk2-build.properties

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