[16814] | 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 |
|
---|
[17703] | 12 | <property name="version.major" value="2"/>
|
---|
[16814] | 13 |
|
---|
[19793] | 14 | <target name="gs2-init">
|
---|
| 15 | <property name="server.exe.location" value="http://www.greenstone.org/caveat-emptor/server-${version}-candidate-${date}.exe" />
|
---|
| 16 | <echo message="server.exe.location: ${server.exe.location}"/>
|
---|
| 17 | </target>
|
---|
| 18 |
|
---|
[17958] | 19 | <target name="export-gsdl-gli">
|
---|
| 20 | <delete dir="${dest}"/>
|
---|
[20929] | 21 | <exec excutable="svn">
|
---|
| 22 | <arg value="export"/>
|
---|
[21202] | 23 | <arg value="${svn.root}/main/${branch.path}/greenstone2"/>
|
---|
[20929] | 24 | <arg value="${dest}"/>
|
---|
| 25 | </exec>
|
---|
| 26 | <exec executable="svn">
|
---|
| 27 | <arg value="export"/>
|
---|
[21202] | 28 | <arg value="${svn.root}/main/${branch.path}/gli"/>
|
---|
[20929] | 29 | <arg value="${dest}/gli"/>
|
---|
| 30 | </exec>
|
---|
[17958] | 31 | </target>
|
---|
| 32 |
|
---|
[18065] | 33 | <target name="drop-in-docs">
|
---|
| 34 | <echo level="info">Dropping gsdl docs into distribution</echo>
|
---|
| 35 | <copy todir="${gsdl.basedir}" overwrite="true">
|
---|
[19462] | 36 | <fileset dir="${rk.home}/greenstone2/docs" excludes="READMEar.txt,READMEes.txt,READMEfr.txt,READMEru.txt"/>
|
---|
[18065] | 37 | </copy>
|
---|
| 38 | </target>
|
---|
| 39 |
|
---|
[17448] | 40 | <target name="insert-export-to-cd-package">
|
---|
[17953] | 41 | <mkdir dir="${gsdl.basedir}/bin/windows"/>
|
---|
[19793] | 42 | <get src="${server.exe.location}" dest="${gsdl.basedir}/bin/windows/server.exe"/>
|
---|
[21202] | 43 | <get src="${svn.root}/main/${branch.path}/binaries/windows/bin/Setup.exe" dest="${gsdl.basedir}/bin/windows/Setup.exe"/>
|
---|
| 44 | <get src="${svn.root}/main/${branch.path}/binaries/windows/bin/gssetup.exe" dest="${gsdl.basedir}/bin/windows/gssetup.exe"/>
|
---|
[17448] | 45 | </target>
|
---|
[17259] | 46 |
|
---|
[20401] | 47 | <target name="create-binary-zip-unix">
|
---|
[17996] | 48 | <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
|
---|
[18929] | 49 |
|
---|
| 50 | <delete dir="${binzip.dir}"/>
|
---|
[17996] | 51 | <exec dir="${basedir}" executable="cp"><arg line="-r distributions/web ${binzip.dir}"/></exec>
|
---|
| 52 |
|
---|
| 53 | <!-- delete sourcecode -->
|
---|
| 54 | <delete dir="${binzip.dir}/common-src"/>
|
---|
| 55 | <delete dir="${binzip.dir}/build-src"/>
|
---|
| 56 | <delete dir="${binzip.dir}/runtime-src"/>
|
---|
| 57 |
|
---|
| 58 | <!-- delete loose files -->
|
---|
| 59 | <delete>
|
---|
[18005] | 60 | <fileset
|
---|
| 61 | dir="${binzip.dir}"
|
---|
[18008] | 62 | includes="README*.txt,Uninstall.sh,uninst.jar,acconfig.h,aclocal.m4,config.guess,config.sub,configtest.pl,configure,configure.in,install-sh,Makefile.in,micotest.cpp,config.h.in"
|
---|
[18005] | 63 | excludes="READMEen.txt"/>
|
---|
[17996] | 64 | </delete>
|
---|
| 65 |
|
---|
| 66 | </target>
|
---|
| 67 |
|
---|
| 68 | <target name="create-binary-zip-windows">
|
---|
[18003] | 69 | <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
|
---|
| 70 | <copy todir="${binzip.dir}">
|
---|
[17996] | 71 | <fileset dir="distributions/web"/>
|
---|
| 72 | </copy>
|
---|
[18016] | 73 |
|
---|
| 74 | <!-- delete sourcecode -->
|
---|
| 75 | <delete dir="${binzip.dir}/common-src"/>
|
---|
| 76 | <delete dir="${binzip.dir}/build-src"/>
|
---|
| 77 | <delete dir="${binzip.dir}/runtime-src"/>
|
---|
| 78 |
|
---|
| 79 | <!-- delete loose files -->
|
---|
[17996] | 80 | <delete>
|
---|
[18016] | 81 | <fileset dir="${binzip.dir}" includes="README*.txt,Uninstall.bat,Uninst.bat,uninst.jar,win32.mak,win32cfg.h,makegs2.bat" excludes="READMEen.txt"/>
|
---|
[17996] | 82 | </delete>
|
---|
| 83 | </target>
|
---|
| 84 |
|
---|
[18052] | 85 | <target name="create-needed-empty-files">
|
---|
| 86 | <mkdir dir="${gsdl.basedir}/tmp"/>
|
---|
| 87 | <chmod dir="${gsdl.basedir}/tmp" perm="a+rwx"/>
|
---|
| 88 | <echo file="${gsdl.basedir}/etc/usage.txt"></echo>
|
---|
| 89 | </target>
|
---|
| 90 |
|
---|
[18929] | 91 | <target name="dist-clean-sourcecode">
|
---|
[19456] | 92 |
|
---|
| 93 | <!-- delete the sourcecode -->
|
---|
[18929] | 94 | <delete>
|
---|
| 95 | <fileset dir="distributions/web" includes="Makefile,config.cache,config.h,config.log,stamp-h,config.status"/>
|
---|
| 96 | </delete>
|
---|
| 97 | <delete dir="distributions/web/common-src"/>
|
---|
| 98 | <delete dir="distributions/web/build-src"/>
|
---|
| 99 | <delete dir="distributions/web/runtime-src"/>
|
---|
[19456] | 100 | <delete>
|
---|
[19479] | 101 | <fileset dir="distributions/web" includes="Install.txt,acconfig.h,aclocal.m4,config.guess,config.sub,configtest.pl,configure,configure.in,install-sh,Makefile.in,micotest.cpp,config.h.in,win32.mak,win32cfg.h"/>
|
---|
[19456] | 102 | </delete>
|
---|
| 103 |
|
---|
[20929] | 104 | </target>
|
---|
[18929] | 105 |
|
---|
| 106 | <target name="dist-unzip-packages">
|
---|
| 107 | <untar src="${basedir}/distributions/web/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz" dest="${basedir}/distributions/web/common-src/packages/sqlite" compression="gzip"/>
|
---|
| 108 | <delete file="${basedir}/distributions/web/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
|
---|
| 109 | </target>
|
---|
| 110 |
|
---|
| 111 | <target name="make-common-src">
|
---|
| 112 | <exec dir="${basedir}/compiled/common-src" executable="make" failonerror="true"/>
|
---|
| 113 | <exec dir="${basedir}/compiled/common-src" executable="make" failonerror="true"><arg value="install"/></exec>
|
---|
| 114 | </target>
|
---|
| 115 |
|
---|
| 116 | <target name="checkout-gsdl-gli">
|
---|
[20929] | 117 | <exec executable="svn">
|
---|
| 118 | <arg value="checkout"/>
|
---|
[21202] | 119 | <arg value="${svn.root}/main/${branch.path}/greenstone2"/>
|
---|
[20929] | 120 | <arg value="${basedir}/compiled"/>
|
---|
| 121 | </exec>
|
---|
| 122 | <exec executable="svn">
|
---|
| 123 | <arg value="checkout"/>
|
---|
[21202] | 124 | <arg value="${svn.root}/main/${branch.path}/gli"/>
|
---|
[20929] | 125 | <arg value="${basedir}/compiled/gli"/>
|
---|
| 126 | </exec>
|
---|
[18929] | 127 | </target>
|
---|
| 128 |
|
---|
| 129 | <target name="compile-gli">
|
---|
| 130 |
|
---|
[20721] | 131 | <if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
|
---|
| 132 | <property name="script.format" value="sh"/>
|
---|
| 133 | <else><if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
|
---|
| 134 | <property name="script.format" value="bat"/>
|
---|
| 135 | </if></else></if>
|
---|
[18929] | 136 |
|
---|
| 137 | <echo>Compiling gli...</echo>
|
---|
| 138 | <exec dir="${glibasedir}" executable="${glibasedir}/makegli.${script.format}"/>
|
---|
| 139 |
|
---|
| 140 | <echo>Creating jar...</echo>
|
---|
| 141 | <exec dir="${glibasedir}" executable="${glibasedir}/makejar.${script.format}"/>
|
---|
| 142 |
|
---|
| 143 | <echo>Cleaning up intermediate files...</echo>
|
---|
| 144 | <delete dir="${glibasedir}/jar"/>
|
---|
| 145 | <delete dir="${glibasedir}/classes/org"/>
|
---|
| 146 |
|
---|
| 147 | <if><bool><isset property="gsdlbasedir"/></bool>
|
---|
| 148 | <echo>Putting gli server jar in a better place</echo>
|
---|
| 149 | <exec executable="mv" failonerror="true">
|
---|
| 150 | <arg line="${glibasedir}/GLIServer.jar ${gsdlbasedir}/bin/java" />
|
---|
| 151 | </exec>
|
---|
| 152 | </if>
|
---|
| 153 |
|
---|
| 154 | </target>
|
---|
| 155 |
|
---|
[19935] | 156 | <target name="clean">
|
---|
| 157 | <antcall target="clean-compiled"/>
|
---|
| 158 | <antcall target="clean-distributions"/>
|
---|
| 159 | <antcall target="clean-components"/>
|
---|
| 160 | <antcall target="clean-installer"/>
|
---|
| 161 | <antcall target="clean-wrapped-installer"/>
|
---|
| 162 | <antcall target="clean-cdrom"/>
|
---|
| 163 | </target>
|
---|
[18929] | 164 |
|
---|
[19935] | 165 | <target name="clean-compiled">
|
---|
| 166 | <delete dir="compiled"/>
|
---|
| 167 | </target>
|
---|
| 168 |
|
---|
| 169 | <target name="clean-distribution">
|
---|
| 170 | <delete dir="distributions"/>
|
---|
| 171 | </target>
|
---|
| 172 |
|
---|
| 173 | <target name="clean-components">
|
---|
| 174 | <delete dir="components"/>
|
---|
| 175 | </target>
|
---|
| 176 |
|
---|
| 177 | <target name="clean-installer">
|
---|
| 178 | <delete dir="installer"/>
|
---|
| 179 | </target>
|
---|
| 180 |
|
---|
| 181 | <target name="clean-wrapped-installer">
|
---|
| 182 | <delete dir="wrapped-installer"/>
|
---|
| 183 | </target>
|
---|
| 184 |
|
---|
| 185 | <target name="clean-cdrom">
|
---|
| 186 | <delete dir="cdrom"/>
|
---|
| 187 | </target>
|
---|
| 188 |
|
---|
[20042] | 189 | <target name="copy-greenstone2-installer-files">
|
---|
| 190 |
|
---|
| 191 | <!-- the installer descriptors -->
|
---|
| 192 | <copy todir="installer" file="${rk.home}/greenstone2/installer/antinstall-config.xml" overwrite="true"/>
|
---|
| 193 | <copy todir="installer" file="${rk.home}/greenstone2/installer/build.xml" overwrite="true"/>
|
---|
| 194 |
|
---|
| 195 | </target>
|
---|
| 196 |
|
---|
[16833] | 197 | </project>
|
---|
[18005] | 198 |
|
---|