root/branches/rk-oran/wirk2/ant-scripts/create-distribution.xml @ 18923

Revision 18923, 3.0 KB (checked in by oranfry, 10 years ago)

change the way the windows rk makes distributions

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk2-create-distribution" default="create-distribution">
3
4    <target name="create-distribution">
5
6        <antcall target="copy-compiled-to-dist"/> <!-- from init -->
7        <antcall target="dist-clean-sourcecode"/> <!-- from rk2-targets -->
8       
9        <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from rk2-targets -->
10        <antcall target="dist-unzip-packages"/>
11       
12        <antcall target="remove-unneeded-files" />
13        <antcall target="strip-svn-dirs"><param name="dir" value="${basedir}/distributions/web"/></antcall>
14        <antcall target="create-needed-empty-files"><param name="gsdl.basedir" value="distributions/web"/></antcall>
15
16        <antcall target="create-binary-zip-windows"/>
17
18    </target>
19
20    <target name="remove-unneeded-files">
21        <delete dir="distributions/web/uninstaller"/>
22        <delete file="${basedir}/distributions/web/gli/.greenstonestore" />
23        <delete dir="${basedir}/distributions/web/bin/linux" />
24        <delete><fileset dir="${basedir}/distributions/web" includes="*.bash,*.sh,*.csh,Support.htm,install-sh,configure,configure.in,config.sub,config.guess,config.h.in,configtest.pl,Makefile.in,aclocal.m4,acconfig.h,micotest.cpp,Install.sh"/></delete>
25        <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.sh,*4gs3.bat"/></delete>
26        <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" />
27    </target>   
28
29    <target name="dist-unzip-packages">
30        <unzip src="${basedir}/distributions/web/common-src/indexers/packages/windows/iconv/iconv.zip" dest="${basedir}/distributions/web/common-src/indexers/packages/windows/iconv"/>
31        <delete file="${basedir}/distributions/web/common-src/indexers/packages/windows/iconv/iconv.zip"/>
32       
33        <unzip src="${basedir}/distributions/web/common-src/packages/windows/crypt/crypt.zip" dest="${basedir}/distributions/web/common-src/packages/windows/crypt"/>
34        <delete file="${basedir}/distributions/web/common-src/packages/windows/crypt/crypt.zip"/>
35       
36        <unzip src="${basedir}/distributions/web/common-src/packages/windows/expat/expat.zip" dest="${basedir}/distributions/web/common-src/packages/windows/expat"/>
37        <delete file="${basedir}/distributions/web/common-src/packages/windows/expat/expat.zip"/>
38       
39        <!--<unzip src="${basedir}/distributions/web/common-src/packages/windows/gdbm/gdbm.zip" dest="${basedir}/distributions/web/common-src/packages/windows/gdbm"/>
40        <delete file="${basedir}/distributions/web/common-src/packages/windows/gdbm/gdbm.zip"/>-->
41       
42        <unzip src="${basedir}/distributions/web/common-src/packages/windows/stlport/stlport.zip" dest="${basedir}/distributions/web/common-src/packages/windows/stlport"/>
43        <delete file="${basedir}/distributions/web/common-src/packages/windows/stlport/stlport.zip"/>
44
45        <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"/>
46        <delete file="${basedir}/distributions/web/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
47    </target>
48   
49</project>
Note: See TracBrowser for help on using the browser.