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

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

shifted the responsibility for the source release to the linux release kit. Made the source release contain a single component with the core and sourcecode mixed together

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