root/release-kits/wirk2/ant-scripts/create-distribution.xml @ 18531

Revision 18531, 5.2 KB (checked in by oranfry, 11 years ago)

don't unzip the non-existent windows gdbm package

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="export-gsdl-gli"><param name="dest" value="distributions/web"/></antcall>
7        <antcall target="drop-in-docs"><param name="gsdl.basedir" value="distributions/web"/></antcall>
8        <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/distributions/web"/></antcall>
9        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli"/></antcall>
10        <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from rk2-targets -->
11        <antcall target="dist-unzip-packages"/>
12        <antcall target="drop-in-binaries" />
13        <antcall target="drop-in-demo-collection" />
14        <!--Don't need because server.exe takes care of the gsdlhome path now-->
15        <!--<antcall target="drop-in-misc" />-->
16        <antcall target="compile-gli" />
17        <antcall target="remove-unneeded-files" />
18        <antcall target="create-needed-empty-files"><param name="gsdl.basedir" value="distributions/web"/></antcall>
19
20        <antcall target="create-binary-zip-windows"/>
21
22    </target>
23
24    <target name="drop-in-binaries">
25        <echo level="info">Dropping compiled binaries into distribution</echo>
26        <delete dir="${basedir}/distributions/web/bin/windows" />
27        <copy todir="${basedir}/distributions/web/bin/windows">
28            <fileset dir="${basedir}/compiled/bin/windows" includes="**/*"/>
29        </copy>
30        <copy todir="${basedir}/distributions/web" file="${basedir}/compiled/bin/windows/server.exe"/>
31       
32        <echo level="info">Dropping LuceneWrapper.jar in place</echo>
33        <copy file="${basedir}/compiled/bin/java/LuceneWrapper.jar" todir="${basedir}/distributions/web/bin/java" />
34    </target>
35
36    <target name="drop-in-demo-collection">
37        <echo level="info">Dropping rebuilt demo collection into distribution</echo>
38        <delete dir="${basedir}/distributions/web/collect/demo" />
39        <copy todir="${basedir}/distributions/web/collect/demo">
40            <fileset dir="${basedir}/compiled/collect/demo" includes="**/*"/>
41        </copy>
42    </target>
43
44    <target name="drop-in-misc">
45        <echo level="info">Putting the default gsdlsite.cfg at the root of the distribution</echo>
46        <copy todir="${basedir}/distributions/web" file="${wirk2.home}/resources/gsdlsite.cfg" overwrite="true"/>
47    </target>
48   
49    <target name="compile-gli">
50        <echo>Compiling gli...</echo>
51        <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makegli.bat"/>
52       
53        <echo>Creating jar...</echo>
54        <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makejar.bat"/>
55       
56        <echo>Cleaning up intermediate files...</echo>
57        <delete dir="${basedir}/distributions/web/gli/jar"/>
58        <delete dir="${basedir}/distributions/web/gli/classes/org"/>
59       
60        <echo>Putting gli server jar in a better place</echo>
61        <move file="${basedir}/distributions/web/gli/GLIServer.jar" todir="${basedir}/distributions/web/bin/java" />
62    </target>
63
64    <target name="remove-unneeded-files">
65        <delete file="${basedir}/distributions/web/gli/.greenstonestore" />
66        <delete dir="${basedir}/distributions/web/bin/linux" />
67        <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>
68        <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.sh,*4gs3.bat"/></delete>
69        <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" />
70    </target>   
71
72    <target name="dist-unzip-packages">
73        <unzip src="${basedir}/distributions/web/common-src/indexers/packages/windows/iconv/iconv.zip" dest="${basedir}/distributions/web/common-src/indexers/packages/windows/iconv"/>
74        <delete file="${basedir}/distributions/web/common-src/indexers/packages/windows/iconv/iconv.zip"/>
75       
76        <unzip src="${basedir}/distributions/web/common-src/packages/windows/crypt/crypt.zip" dest="${basedir}/distributions/web/common-src/packages/windows/crypt"/>
77        <delete file="${basedir}/distributions/web/common-src/packages/windows/crypt/crypt.zip"/>
78       
79        <unzip src="${basedir}/distributions/web/common-src/packages/windows/expat/expat.zip" dest="${basedir}/distributions/web/common-src/packages/windows/expat"/>
80        <delete file="${basedir}/distributions/web/common-src/packages/windows/expat/expat.zip"/>
81       
82        <!--<unzip src="${basedir}/distributions/web/common-src/packages/windows/gdbm/gdbm.zip" dest="${basedir}/distributions/web/common-src/packages/windows/gdbm"/>
83        <delete file="${basedir}/distributions/web/common-src/packages/windows/gdbm/gdbm.zip"/>-->
84       
85        <unzip src="${basedir}/distributions/web/common-src/packages/windows/stlport/stlport.zip" dest="${basedir}/distributions/web/common-src/packages/windows/stlport"/>
86        <delete file="${basedir}/distributions/web/common-src/packages/windows/stlport/stlport.zip"/>
87
88        <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"/>
89        <delete file="${basedir}/distributions/web/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
90    </target>
91   
92</project>
Note: See TracBrowser for help on using the browser.