source: release-kits/shared/greenstone2/ant-scripts/rk2-targets.xml@ 17451

Last change on this file since 17451 was 17451, checked in by oranfry, 13 years ago

fixes to the target for getting the cdrom package

File size: 6.3 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!--
3 ..........................................................
4 August 2008
5 Targets for Greenstone2 release kits
6 Oran Fry
7 ..........................................................
8-->
9
10<project name="rk2-targets">
11
12 <target name="make-installer-files-concrete">
13
14 <!-- calculate the size of some components -->
15 <echo>Calculating the size of some components</echo>
16
17 <!-- core greenstone2 system -->
18 <length property="component.bytesize.core" mode="all"><fileset file="${basedir}/components/core.comp"/></length>
19 <math result="component.megabytesize.core" operand1="${component.bytesize.core}" operation="/" operand2="1048576" datatype="int"/>
20 <property name="component.size.core" value="${component.megabytesize.core} MB"/>
21
22 <!-- source code -->
23 <length property="component.bytesize.sourcecode" mode="all"><fileset file="${basedir}/components/sourcecode.comp"/></length>
24 <math result="component.megabytesize.sourcecode" operand1="${component.bytesize.sourcecode}" operation="/" operand2="1048576" datatype="int"/>
25 <property name="component.size.sourcecode" value="${component.megabytesize.sourcecode} MB"/>
26
27 <!-- imagemagick -->
28 <length property="component.bytesize.imagemagick" mode="all"><fileset file="${basedir}/components/imagemagick.comp"/></length>
29 <math result="component.megabytesize.imagemagick" operand1="${component.bytesize.imagemagick}" operation="/" operand2="1048576" datatype="int"/>
30 <property name="component.size.imagemagick" value="${component.megabytesize.imagemagick} MB"/>
31
32 <!-- ghostscript -->
33 <length property="component.bytesize.ghostscript" mode="all"><fileset file="${basedir}/components/ghostscript.comp"/></length>
34 <math result="component.megabytesize.ghostscript" operand1="${component.bytesize.ghostscript}" operation="/" operand2="1048576" datatype="int"/>
35 <property name="component.size.ghostscript" value="${component.megabytesize.ghostscript} MB"/>
36
37 <!-- put the concrete values of things in the config -->
38 <rsr file="${basedir}/installer/antinstall-config.xml">
39 <job pattern="@version@" replacement="${version}"/>
40 <job pattern="@component.size.core@" replacement="${component.size.core}"/>
41 <job pattern="@component.size.sourcecode@" replacement="${component.size.sourcecode}"/>
42 <job pattern="@component.size.linux-java@" replacement="${component.size.linux-java}"/>
43 <job pattern="@component.size.windows-java@" replacement="${component.size.windows-java}"/>
44 <job pattern="@component.size.imagemagick@" replacement="${component.size.imagemagick}"/>
45 <job pattern="@component.size.ghostscript@" replacement="${component.size.ghostscript}"/>
46 </rsr>
47
48 <rsr file="${basedir}/installer/build.xml">
49 <job pattern="@version@" replacement="${version}"/>
50 <job pattern="@java.min.version@" replacement="${java.min.version}"/>
51 <job pattern="@windows-java.extracted@" replacement="${windows-java.extracted}"/>
52 <job pattern="@linux-java.extracted@" replacement="${linux-java.extracted}"/>
53 </rsr>
54
55 <!-- put the concrete values of things in the text -->
56 <!-- default -->
57 <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties">
58 <job pattern="@version@" replacement="${version}"/>
59 <job pattern="@java.min.version@" replacement="${java.min.version}"/>
60 <job pattern="@bundled.version.windows-java@" replacement="${bundled.version.windows-java}"/>
61 <job pattern="@bundled.version.linux-java@" replacement="${bundled.version.linux-java}"/>
62 <job pattern="@bundled.version.ghostscript@" replacement="${bundled.version.ghostscript}"/>
63 <job pattern="@bundled.version.imagemagick@" replacement="${bundled.version.imagemagick}"/>
64 </rsr>
65
66 <!-- chinese -->
67 <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties">
68 <job pattern="@version@" replacement="${version}"/>
69 <job pattern="@java.min.version@" replacement="${java.min.version}"/>
70 <job pattern="@bundled.version.windows-java@" replacement="${bundled.version.windows-java}"/>
71 <job pattern="@bundled.version.linux-java@" replacement="${bundled.version.linux-java}"/>
72 <job pattern="@bundled.version.ghostscript@" replacement="${bundled.version.ghostscript}"/>
73 <job pattern="@bundled.version.imagemagick@" replacement="${bundled.version.imagemagick}"/>
74 </rsr>
75
76 </target>
77
78 <target name="compile-search4j-unix">
79 <copy todir="${basedir}/gsdl"><fileset dir="${rk.home}/packages" includes="search4j/**/*"/></copy>
80 <chmod perm="ug+x" file="${basedir}/gsdl/search4j/compile.sh"/>
81 <exec dir="${basedir}/gsdl/search4j" executable="${basedir}/gsdl/search4j/compile.sh"/>
82 <move file="${basedir}/gsdl/search4j/search4j" todir="${basedir}/gsdl/bin"/>
83 <chmod perm="ug+x" file="${basedir}/gsdl/bin/search4j"/>
84 </target>
85
86 <target name="compile-search4j-windows">
87 <copy todir="${basedir}/gsdl"><fileset dir="${rk.home}/packages" includes="search4j/**/*"/></copy>
88 <exec dir="${basedir}/gsdl/search4j" executable="${basedir}/gsdl/search4j/compile.bat"/>
89 <move file="${basedir}/gsdl/search4j/search4j.exe" todir="${basedir}/gsdl/bin"/>
90 </target>
91
92
93 <target name="compile-uninstaller">
94 <echo>Compiling Uninstaller</echo>
95
96 <mkdir dir="${basedir}/gsdl/uninstaller/build" />
97
98 <javac
99 srcdir="${rk.home}/uninstaller"
100 destdir="${basedir}/gsdl/uninstaller/build" />
101
102 <copy todir="${basedir}/gsdl/uninstaller/build">
103 <fileset dir="${rk.home}/uninstaller" includes="*.properties"/>
104 </copy>
105
106 <jar
107 destfile="${basedir}/gsdl/uninstaller/uninst.jar"
108 manifest="${rk.home}/uninstaller/manifest.mf"
109 basedir="${basedir}/gsdl/uninstaller/build" />
110
111 </target>
112
113 <target name="insert-uninstaller">
114 <copy file="gsdl/uninstaller/uninst.jar" todir="distributions/web" />
115 <copy file="${rk.home}/uninstaller/Uninstall.${script-format}" todir="distributions/web" />
116 </target>
117
118 <target name="insert-export-to-cd-package">
119 <mkdir dir="distributions/web/bin/windows"/>
120 <get src="http://greenstone.org/release-snapshots/server.exe" dest="${basedir}/distributions/web/bin/windows/server.exe"/>
121 <get src="http://svn.greenstone.org/other-projects/trunk/winbin/bin/Setup.exe" dest="${basedir}/distributions/web/bin/windows/Setup.exe"/>
122 <get src="http://svn.greenstone.org/other-projects/trunk/winbin/bin/gssetup.exe" dest="${basedir}/distributions/web/bin/windows/gssetup.exe"/>
123 </target>
124
125
126
127</project>
Note: See TracBrowser for help on using the repository browser.