[19592] | 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"/>
|
---|
[19615] | 12 | <antcall target="compile-cdrom-wrapper"/>
|
---|
| 13 | <antcall target="create-cdrom-components-archive"/>
|
---|
[19592] | 14 | </target>
|
---|
| 15 |
|
---|
| 16 | <target name="prepare-cdrom-components">
|
---|
| 17 |
|
---|
[19615] | 18 | <delete dir="cdrom"/>
|
---|
| 19 | <mkdir dir="cdrom/dist/Software"/>
|
---|
[19592] | 20 |
|
---|
| 21 | <!-- core -->
|
---|
[19615] | 22 | <mkdir dir="cdrom/dist/Software/core/mac"/>
|
---|
| 23 | <copy todir="cdrom/dist/Software/core/mac" overwrite="true">
|
---|
[19592] | 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/**/*"/>
|
---|
[19768] | 29 | <include name="cgi-bin/library.cgi"/>
|
---|
| 30 | <include name="cgi-bin/oaiserver.cgi"/>
|
---|
[19592] | 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 |
|
---|
[19776] | 39 | <!-- delete the httpd manual to save space -->
|
---|
[19938] | 40 | <delete dir="cdrom/dist/Software/core/mac/apache-httpd/darwin/manual"/>
|
---|
[19776] | 41 |
|
---|
[19592] | 42 | <!-- imagemagick -->
|
---|
| 43 | <mkdir dir="cdrom/dist/Software/imagemagick/mac"/>
|
---|
| 44 | <copy todir="cdrom/dist/Software/imagemagick/mac" overwrite="true">
|
---|
| 45 | <fileset dir="components/tmp/imagemagick"/>
|
---|
| 46 | </copy>
|
---|
| 47 |
|
---|
| 48 | <!-- ghostscript -->
|
---|
| 49 | <mkdir dir="cdrom/dist/Software/ghostscript/mac"/>
|
---|
| 50 | <copy todir="cdrom/dist/Software/ghostscript/mac" overwrite="true">
|
---|
| 51 | <fileset dir="components/tmp/ghostscript"/>
|
---|
| 52 | </copy>
|
---|
| 53 |
|
---|
| 54 | </target>
|
---|
| 55 |
|
---|
[19615] | 56 | <target name="compile-cdrom-wrapper">
|
---|
| 57 | <mkdir dir="wrapped-installer/cdrom"/>
|
---|
| 58 | <!-- create app for cdrom installer -->
|
---|
| 59 | <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app"><fileset dir="${mark2.home}/mac/Wrapper.app"/></copy>
|
---|
| 60 | <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Resources" file="${mark2.home}/greenstone2/icon/icon.icns"/>
|
---|
| 61 | <chmod file="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/MacOS/JavaApplicationStub" perm="+x"/>
|
---|
| 62 |
|
---|
| 63 | <!-- copy bundled files -->
|
---|
| 64 | <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Resources/Java" file="${basedir}/installer/cdrom.jar"/>
|
---|
| 65 |
|
---|
| 66 | <!-- substitute in real values -->
|
---|
| 67 | <rsr file="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Info.plist" pattern="@jar@" replacement="cdrom.jar"/>
|
---|
| 68 | <rsr file="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Info.plist" pattern="@version@" replacement="${version}"/>
|
---|
| 69 | </target>
|
---|
| 70 |
|
---|
| 71 | <target name="create-cdrom-components-archive">
|
---|
| 72 | <mkdir dir="products"/>
|
---|
| 73 | <exec dir="cdrom/dist" executable="bash">
|
---|
| 74 | <arg value="-c"/>
|
---|
| 75 | <arg value="tar -czf ../../products/cdrom-components-${version}-mac.tar.gz *"/>
|
---|
| 76 | </exec>
|
---|
| 77 | </target>
|
---|
| 78 |
|
---|
[19592] | 79 | </project>
|
---|