source: release-kits/wirk2/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.6 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk2-create-cdrom-components">
3
4 <!--
5 cd components
6 produce components for cdrom distributions, to be picked up and used by cdrk2 release kit
7 pull out windows only files
8 -->
9
10 <target name="create-cdrom-components">
11 <antcall target="compile-cdrom-installer"/> <!-- from init -->
12 <antcall target="prepare-cdrom-components"/>
13 <antcall target="compile-cdrom-wrapper"/>
14 <antcall target="create-cdrom-components-archive"/>
15 </target>
16
17 <target name="prepare-cdrom-components">
18 <delete dir="cdrom"/>
19 <mkdir dir="cdrom/build"/>
20 <mkdir dir="cdrom/dist/Software"/>
21 <mkdir dir="cdrom/dist/Java/Windows"/>
22 <mkdir dir="cdrom/dist/Java/Jars"/>
23
24 <!-- core -->
25 <mkdir dir="cdrom/dist/Software/core/windows"/>
26 <copy todir="cdromdist/Software/core/windows" overwrite="true">
27 <fileset dir="components/tmp/core">
28 <include name="bin/windows"/>
29 <include name="bin/windows/**/*"/>
30 <include name="cgi-bin/library.cgi"/>
31 <include name="cgi-bin/oaiserver.cgi"/>
32 <include name="*.bat"/>
33 </fileset>
34 </copy>
35
36 <!-- imagemagick -->
37 <mkdir dir="cdrom/dist/Software/imagemagick/windows"/>
38 <copy todir="cdrom/dist/Software/imagemagick/windows" overwrite="true">
39 <fileset dir="components/tmp/imagemagick"/>
40 </copy>
41
42 <!-- ghostscript -->
43 <mkdir dir="cdrom/dist/Software/ghostscript/windows"/>
44 <copy todir="cdrom/dist/Software/ghostscript/windows" overwrite="true">
45 <fileset dir="components/tmp/ghostscript"/>
46 </copy>
47
48 <!-- jre -->
49 <exec dir="cdrom/dist/Java/Windows" executable="${wirk2.home}/windows/wrapper/jre.exe"/>
50
51 <!-- jar installer -->
52 <copy file="installer/cdrom.jar" tofile="cdrom/dist/Java/Jars/windows.jar"/>
53
54 </target>
55
56 <target name="compile-cdrom-wrapper">
57 <copy file="${wirk2.home}/greenstone2/icon/icon.ico" todir="cdrom/build"/>
58 <echo file="cdrom/build/wrapper.rc">MAINICON ICON "icon.ico"</echo>
59 <exec executable="rc" dir="cdrom/build">
60 <arg line="wrapper.rc"/>
61 </exec>
62 <exec executable="cl" dir="cdrom/build">
63 <arg line="/c -GX -DCDROM ${rk.home}/windows/wrapper/wrapper.cpp /out:wrapper.obj"/>
64 </exec>
65 <exec executable="link" dir="cdrom/build">
66 <arg line="/OUT:../dist/Greenstone-${version}-windows.exe gdi32.lib advapi32.lib shell32.lib user32.lib wrapper.obj wrapper.RES"/>
67 </exec>
68
69 </target>
70
71 <target name="create-cdrom-components-archive">
72 <mkdir dir="products"/>
73 <tar destfile="products/cdrom-components-${version}-windows.tar.gz" compression="gzip">
74 <tarfileset dir="cdrom/dist"><include name="**/*"/></tarfileset>
75 </tar>
76 </target>
77
78</project>
Note: See TracBrowser for help on using the repository browser.