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

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

prepare source releases on each os

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