source: release-kits/mark2/ant-scripts/create-cdrom-components.xml@ 19615

Last change on this file since 19615 was 19615, checked in by oranfry, 12 years ago

fixed to creating cdrom components on linux and mac

File size: 2.7 KB
Line 
1<project name="mark2-create-cdrom-components">
2
3 <!--
4 cd components
5 produce components for cdrom distributions, to be picked up and used by cdrk2 release kit
6 only include files that aren't for all operating systems, as those files are taken care of by lirk2
7 -->
8
9 <target name="create-cdrom-components">
10 <antcall target="compile-cdrom-installer"/> <!-- from init -->
11 <antcall target="prepare-cdrom-components"/>
12 <antcall target="compile-cdrom-wrapper"/>
13 <antcall target="create-cdrom-components-archive"/>
14 </target>
15
16 <target name="prepare-cdrom-components">
17
18 <delete dir="cdrom"/>
19 <mkdir dir="cdrom/dist/Software"/>
20
21 <!-- core -->
22 <mkdir dir="cdrom/dist/Software/core/mac"/>
23 <copy todir="cdrom/dist/Software/core/mac" overwrite="true">
24 <fileset dir="components/tmp/core">
25 <include name="bin/darwin"/>
26 <include name="bin/darwin/**/*"/>
27 <include name="bin/windows"/>
28 <include name="bin/windows/**/*"/>
29 <include name="apache-httpd"/>
30 <include name="apache-httpd/**/*"/>
31 <include name="*.sh"/>
32 <include name="*.csh"/>
33 <include name="*.bash"/>
34 </fileset>
35 </copy>
36
37 <!-- imagemagick -->
38 <mkdir dir="cdrom/dist/Software/imagemagick/mac"/>
39 <copy todir="cdrom/dist/Software/imagemagick/mac" overwrite="true">
40 <fileset dir="components/tmp/imagemagick"/>
41 </copy>
42
43 <!-- ghostscript -->
44 <mkdir dir="cdrom/dist/Software/ghostscript/mac"/>
45 <copy todir="cdrom/dist/Software/ghostscript/mac" overwrite="true">
46 <fileset dir="components/tmp/ghostscript"/>
47 </copy>
48
49 </target>
50
51 <target name="compile-cdrom-wrapper">
52
53 <mkdir dir="wrapped-installer/cdrom"/>
54 <!-- create app for cdrom installer -->
55 <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app"><fileset dir="${mark2.home}/mac/Wrapper.app"/></copy>
56 <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Resources" file="${mark2.home}/greenstone2/icon/icon.icns"/>
57 <chmod file="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/MacOS/JavaApplicationStub" perm="+x"/>
58
59 <!-- copy bundled files -->
60 <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Resources/Java" file="${basedir}/installer/cdrom.jar"/>
61
62 <!-- substitute in real values -->
63 <rsr file="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Info.plist" pattern="@jar@" replacement="cdrom.jar"/>
64 <rsr file="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Info.plist" pattern="@version@" replacement="${version}"/>
65
66 </target>
67
68 <target name="create-cdrom-components-archive">
69 <mkdir dir="products"/>
70 <exec dir="cdrom/dist" executable="bash">
71 <arg value="-c"/>
72 <arg value="tar -czf ../../products/cdrom-components-${version}-mac.tar.gz *"/>
73 </exec>
74 </target>
75
76
77</project>
Note: See TracBrowser for help on using the repository browser.