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

Last change on this file since 19768 was 19768, checked in by oranfry, 11 years ago

library.cgi and oaiserver.cgi are os-specific so put them in cdrom components

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="cgi-bin/library.cgi"/>
30 <include name="cgi-bin/oaiserver.cgi"/>
31 <include name="apache-httpd"/>
32 <include name="apache-httpd/**/*"/>
33 <include name="*.sh"/>
34 <include name="*.csh"/>
35 <include name="*.bash"/>
36 </fileset>
37 </copy>
38
39 <!-- imagemagick -->
40 <mkdir dir="cdrom/dist/Software/imagemagick/mac"/>
41 <copy todir="cdrom/dist/Software/imagemagick/mac" overwrite="true">
42 <fileset dir="components/tmp/imagemagick"/>
43 </copy>
44
45 <!-- ghostscript -->
46 <mkdir dir="cdrom/dist/Software/ghostscript/mac"/>
47 <copy todir="cdrom/dist/Software/ghostscript/mac" overwrite="true">
48 <fileset dir="components/tmp/ghostscript"/>
49 </copy>
50
51 </target>
52
53 <target name="compile-cdrom-wrapper">
54 <mkdir dir="wrapped-installer/cdrom"/>
55 <!-- create app for cdrom installer -->
56 <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app"><fileset dir="${mark2.home}/mac/Wrapper.app"/></copy>
57 <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Resources" file="${mark2.home}/greenstone2/icon/icon.icns"/>
58 <chmod file="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/MacOS/JavaApplicationStub" perm="+x"/>
59
60 <!-- copy bundled files -->
61 <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Resources/Java" file="${basedir}/installer/cdrom.jar"/>
62
63 <!-- substitute in real values -->
64 <rsr file="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Info.plist" pattern="@jar@" replacement="cdrom.jar"/>
65 <rsr file="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Info.plist" pattern="@version@" replacement="${version}"/>
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</project>
Note: See TracBrowser for help on using the repository browser.