source: main/trunk/release-kits/kits/rk2/ant-scripts/create-distribution.xml@ 21394

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

moving specific stuff out of general area

File size: 3.9 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="rk2-create-distribution">
3
4 <target name="create-distribution" depends="init,gs2-init">
5
6 <antcall target="copy-compiled-to-dist"/>
7 <antcall target="dist-clean-sourcecode"/>
8 <antcall target="insert-uninstaller"></antcall>
9 <antcall target="strip-svn-dirs"><param name="dir" value="${basedir}/distributions/web"/></antcall>
10
11 <!-- create needed empty files -->
12 <mkdir dir="distributions/web/tmp"/>
13 <chmod dir="distributions/web/tmp" perm="a+rwx"/>
14 <echo file="distributions/web/etc/usage.txt"></echo>
15
16 <!-- windows -->
17 <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
18 <antcall target="copy-server"/>
19 <antcall target="create-binary-zip-windows"/>
20
21 <!-- unneeded files -->
22 <delete dir="${basedir}/distributions/web/bin/linux" />
23 <delete><fileset dir="${basedir}/distributions/web" includes="*.bash,*.sh,*.csh,.gstermrc"/></delete>
24 <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.sh,*4gs3.bat"/></delete>
25 <delete dir="${basedir}/distributions/web/autom4te.cache" />
26
27 <!-- linux -->
28 <else><if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
29 <antcall target="insert-export-to-cd-package"><param name="gsdl.basedir" value="distributions/web"/></antcall>
30 <antcall target="export-imagemagick-linux-binaries"/>
31 <antcall target="export-wvware-linux-binaries"/>
32
33 <!-- unneeded files -->
34 <delete><fileset dir="${basedir}/distributions/web" includes="win32.mak,win32cfg.h,Install.sh,Support.htm,micotest.cpp"/></delete>
35 <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.bat"/></delete>
36 <delete><fileset dir="${basedir}/distributions/web" includes="*.bat"/></delete>
37 <delete dir="${basedir}/distributions/web/common-src/packages/windows"/>
38 <delete dir="${basedir}/distributions/web/common-src/indexers/packages/windows"/>
39
40 <!-- mac -->
41 <else><if><bool><equals arg1="${rk.os}" arg2="mac"/></bool>
42 <antcall target="insert-export-to-cd-package"><param name="gsdl.basedir" value="distributions/web"/></antcall>
43 <antcall target="export-imagemagick-darwin-binaries" />
44 <antcall target="export-ghostscript-darwin-binaries" />
45
46 <!-- unneeded files -->
47 <delete><fileset dir="${basedir}/distributions/web" includes="win32.mak,win32cfg.h,Install.sh,Support.htm"/></delete>
48 <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.bat"/></delete>
49 <delete><fileset dir="${basedir}/distributions/web" includes="*.bat"/></delete>
50 <delete dir="${basedir}/distributions/web/common-src/packages/windows"/>
51
52
53 </if></else></if></else></if>
54
55 <!-- unneeded files -->
56 <delete dir="${basedir}/distributions/web/uninstaller" />
57 <delete file="${basedir}/distributions/web/gli/.greenstonestore" />
58 <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" />
59
60 </target>
61
62 <target name="export-imagemagick-linux-binaries">
63 <delete dir="distributions/web/bin/linux/imagemagick"/>
64 <svn>
65 <export srcurl="${svn.root}/main/${branch.path}/binaries/linux/imagemagick" destPath="distributions/web/bin/linux/imagemagick"/>
66 </svn>
67 </target>
68
69 <target name="export-wvware-linux-binaries">
70 <delete dir="distributions/web/bin/linux/wv"/>
71 <svn>
72 <export srcurl="${svn.root}/main/${branch.path}/binaries/linux/wv" destPath="distributions/web/bin/linux/wv"/>
73 </svn>
74 </target>
75
76 <target name="export-imagemagick-darwin-binaries">
77 <delete dir="distributions/web/bin/darwin/imagemagick"/>
78 <exec executable="svn">
79 <arg value="export"/>
80 <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/imagemagick"/>
81 <arg value="distributions/web/bin/darwin/imagemagick"/>
82 </exec>
83 </target>
84
85 <target name="export-ghostscript-darwin-binaries">
86 <delete dir="distributions/web/bin/darwin/ghostscript"/>
87 <exec executable="svn">
88 <arg value="export"/>
89 <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/ghostscript"/>
90 <arg value="distributions/web/bin/darwin/ghostscript"/>
91 </exec>
92 </target>
93
94
95</project>
Note: See TracBrowser for help on using the repository browser.