Changeset 21394


Ignore:
Timestamp:
12/22/09 14:52:32 (11 years ago)
Author:
oranfry
Message:

moving specific stuff out of general area

Location:
main/trunk/release-kits
Files:
1 deleted
10 edited
2 moved

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/bin/rk

    r21388 r21394  
    1313
    1414function show_help {
    15     echo "$rk_name - $rk_fullname"
    16     echo "Automatically creates Greenstone releases"
    17     echo
    18     echo "usage: $rk_name [-help|-cmd] [ANT_ARGS]"
    19     echo "  -help"
    20     echo "      show this help screen"
    21     echo
    22     echo "  -cmd"
    23     echo "      show the ant command being used by $rk_name"
    24     echo
    25     echo "  ANT_ARGS"
    26     echo "      Additional arguments to be passed to ant"
     15    echo "usage: {rk2|rk3|sork2|sork2|cdrk2|derk} [-help|-cmd] [ANT_ARGS]"
     16    echo "  -help       show this help screen"
     17    echo "  -cmd        show the ant command being used by the releas kit"
     18    echo "  ANT_ARGS    additional arguments to be passed to ant"
    2719}
    2820
     
    3628        rk_fullname="Release Kit for Greenstone3"
    3729else
    38     echo "Unrecognised release-kit name '$rk_name'" >&2
     30    show_help
    3931    exit
    4032fi
     
    4335#cd up a level or two if needed
    4436if [ -e "$rk_name-build.properties" ]; then
    45     pushd .
     37    pushd . &>/dev/null
    4638elif [ -e "../$rk_name-build.properties" ]; then
    47     pushd ..
     39    pushd .. &>/dev/null
    4840elif [ -e "../../$rk_name-build.properties" ]; then
    49     pushd ../..
     41    pushd ../.. &>/dev/null
    5042else
    5143    echo "couldn't find file $rk_name-build.properties"
     
    5850
    5951#create the command
    60 toexec="ant -lib `pwd`/installer/classes -f $RK_HOME/kits/$rk_name/ant-scripts/build.xml -Dbasedir=`pwd` -D$rk_name.home=$RK_HOME"
     52toexec="ant -lib \"`pwd`/installer/classes\" -f \"$RK_HOME/kits/$rk_name/ant-scripts/build.xml\" \"-Dbasedir=`pwd`\" \"-Drk.home=$RK_HOME\" \"-Drk.name=$rk_name\""
    6153
    6254#pass on the arguments
     
    6961        show_cmd=true
    7062    else
    71         toexec="$toexec $1"
     63        toexec="$toexec \"$1\""
    7264    fi
    7365    shift
     
    8577
    8678#go back to original dir
    87 popd
     79popd &>/dev/null
  • main/trunk/release-kits/kits/rk2/ant-scripts/build.xml

    r21388 r21394  
    1010<project name="rk2-build" default="rk2">
    1111
    12     <!-- CONSTANTS -->
    13 
    14     <!-- for the benefit of the shared scripts, set release-kit home -->
    15     <property name="rk.name" value="rk2"/>
    16     <property name="rk.home" value="${rk2.home}" />
    17 
    1812    <!-- IMPORT OTHER ANT SCRIPTS -->
    19     <import file="../../../shared/core/ant-scripts/init.xml"/>
    20     <import file="../../../shared/core/ant-scripts/operations-on-gli.xml"/>
    21     <import file="../../../shared/greenstone2/ant-scripts/rk2-targets.xml"/>
     13    <import file="${rk.home}/shared/core/ant-scripts/init.xml"/>
     14    <import file="${rk.home}/shared/core/ant-scripts/operations-on-gli.xml"/>
     15    <import file="${rk.home}/shared/greenstone2/ant-scripts/rk2-targets.xml"/>
    2216
    2317    <import file="compile.xml"/>
     
    3125
    3226    <!-- THE MAIN TARGET -->
    33     <target name="rk2" depends="init,gs2-init">
    34         <antcall target="compile"/>
    35         <antcall target="create-distribution"/>
    36         <antcall target="create-components"/>
    37         <antcall target="create-installer"/>
    38         <antcall target="wrap"/>
    39         <antcall target="create-cdrom-components"/>
    40     </target>
     27    <target name="rk2" depends="init,gs2-init,compile,create-distribution,create-components,create-installer,wrap,create-cdrom-components"/>
    4128
    4229    <target name="properties">
     
    5037    </target>
    5138
     39    <!-- TODO: Move the targets below to the xml file that calls it -->
     40    <target name="checkout-gsdl-gli">
     41        <exec executable="svn">
     42            <arg value="checkout"/>
     43            <arg value="${svn.root}/main/${branch.path}/greenstone2"/>
     44            <arg value="${basedir}/compiled"/>
     45        </exec>
     46                <exec executable="svn">
     47            <arg value="checkout"/>
     48            <arg value="${svn.root}/main/${branch.path}/gli"/>
     49            <arg value="${basedir}/compiled/gli"/>
     50        </exec>
     51    </target>
     52
     53    <target name="insert-export-to-cd-package">
     54        <mkdir dir="${gsdl.basedir}/bin/windows"/>
     55        <get src="${server.exe.location}" dest="${gsdl.basedir}/bin/windows/server.exe"/>
     56        <get src="${svn.root}/main/${branch.path}/binaries/windows/bin/Setup.exe" dest="${gsdl.basedir}/bin/windows/Setup.exe"/>
     57        <get src="${svn.root}/main/${branch.path}/binaries/windows/bin/gssetup.exe" dest="${gsdl.basedir}/bin/windows/gssetup.exe"/>
     58    </target>
     59
     60    <target name="create-binary-zip-unix">
     61        <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
     62
     63        <delete dir="${binzip.dir}"/>
     64        <exec dir="${basedir}" executable="cp"><arg line="-r distributions/web ${binzip.dir}"/></exec>
     65
     66        <!-- delete sourcecode -->
     67        <delete dir="${binzip.dir}/common-src"/>
     68        <delete dir="${binzip.dir}/build-src"/>
     69        <delete dir="${binzip.dir}/runtime-src"/>
     70
     71        <!-- delete loose files -->
     72        <delete>
     73            <fileset
     74                dir="${binzip.dir}"
     75                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"
     76                excludes="READMEen.txt"/>
     77        </delete>
     78
     79    </target>
     80
     81    <target name="create-binary-zip-windows">
     82        <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
     83        <copy todir="${binzip.dir}">
     84            <fileset dir="distributions/web"/>
     85        </copy>
     86
     87        <!-- delete sourcecode -->
     88        <delete dir="${binzip.dir}/common-src"/>
     89        <delete dir="${binzip.dir}/build-src"/>
     90        <delete dir="${binzip.dir}/runtime-src"/>
     91
     92        <!-- delete loose files -->
     93        <delete>
     94            <fileset dir="${binzip.dir}" includes="README*.txt,Uninstall.bat,Uninst.bat,uninst.jar,win32.mak,win32cfg.h,makegs2.bat" excludes="READMEen.txt"/>
     95        </delete>
     96    </target>
     97
     98    <target name="dist-clean-sourcecode">
     99
     100        <!-- delete the sourcecode -->
     101        <delete>
     102            <fileset dir="distributions/web" includes="Makefile,config.cache,config.h,config.log,stamp-h,config.status"/>
     103        </delete>
     104        <delete dir="distributions/web/common-src"/>
     105        <delete dir="distributions/web/build-src"/>
     106        <delete dir="distributions/web/runtime-src"/>
     107        <delete>
     108            <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"/>
     109        </delete>
     110
     111        </target>
     112
     113    <target name="dist-unzip-packages">
     114        <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"/>
     115        <delete file="${basedir}/distributions/web/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
     116    </target>
     117
     118    <target name="make-common-src">
     119        <exec dir="${basedir}/compiled/common-src" executable="make" failonerror="true"/>
     120        <exec dir="${basedir}/compiled/common-src" executable="make" failonerror="true"><arg value="install"/></exec>
     121    </target>
     122
     123    <target name="compile-gli">
     124
     125        <if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
     126            <property name="script.format" value="sh"/>
     127        <else><if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
     128            <property name="script.format" value="bat"/>
     129        </if></else></if>
     130       
     131        <echo>Compiling gli...</echo>
     132        <exec dir="${glibasedir}" executable="${glibasedir}/makegli.${script.format}"/>
     133
     134        <echo>Creating jar...</echo>
     135        <exec dir="${glibasedir}" executable="${glibasedir}/makejar.${script.format}"/>
     136
     137        <echo>Cleaning up intermediate files...</echo>
     138        <delete dir="${glibasedir}/jar"/>
     139        <delete dir="${glibasedir}/classes/org"/>
     140
     141        <if><bool><isset property="gsdlbasedir"/></bool>
     142            <echo>Putting gli server jar in a better place</echo>
     143            <exec executable="mv" failonerror="true">
     144                <arg line="${glibasedir}/GLIServer.jar ${gsdlbasedir}/bin/java" />
     145            </exec>
     146        </if>
     147
     148    </target>
     149
     150    <target name="copy-greenstone2-installer-files">
     151        <!-- the installer descriptors -->
     152        <copy todir="installer" file="${rk.home}/kits/rk2/installer/antinstall-config.xml" overwrite="true"/>
     153        <copy todir="installer" file="${rk.home}/kits/rk2/installer/installer/build.xml" overwrite="true"/>
     154    </target>
     155
    52156</project>
  • main/trunk/release-kits/kits/rk2/ant-scripts/compile.xml

    r21319 r21394  
    22<project name="rk2-compile">
    33
    4     <target name="compile">
     4    <target name="compile" depends="init,gs2-init">
    55
    66        <antcall target="checkout-gsdl-gli" />
     
    144144        <!-- linux, mac -->
    145145        <if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
    146             <exec dir="${basedir}/compiled" executable="${rk2.home}/resources/build-demo.sh" failonerror="true"/>
     146            <exec dir="${basedir}/compiled" executable="${rk.home}/kits/rk2/resources/build-demo.sh" failonerror="true"/>
    147147
    148148        <!-- windows -->
     
    194194
    195195    <target name="compile-c-code">
    196         <copy file="${wirk2.home}/resources/compile.bat" todir="${basedir}/compiled" overwrite="true"/>
     196        <copy file="${rk.home}/kits/rk2/resources/compile.bat" todir="${basedir}/compiled" overwrite="true"/>
    197197        <exec dir="${basedir}/compiled" executable="nmake"><arg value="/f"/><arg value="win32.mak"/><arg value="clean"/></exec>
    198198        <exec dir="${basedir}/compiled" executable="nmake"><arg value="/f"/><arg value="win32.mak"/><arg value="APACHE_HTTPD=1"/></exec>
     
    203203    </target>
    204204
     205    <target name="drop-in-docs">
     206        <echo level="info">Dropping gsdl docs into distribution</echo>
     207        <copy todir="${gsdl.basedir}" overwrite="true">
     208            <fileset dir="${rk.home}/shared/greenstone2/docs" excludes="READMEar.txt,READMEes.txt,READMEfr.txt,READMEru.txt"/>
     209        </copy>
     210    </target>
     211
     212
    205213</project>
  • main/trunk/release-kits/kits/rk2/ant-scripts/create-cdrom-components.xml

    r21311 r21394  
    106106            <mkdir dir="cdrom/dist/Java/Linux"/>
    107107            <exec executable="cp">
    108                 <arg value="${rk2.home}/linux/jre_bin"/>
     108                <arg value="${rk.home}/shared/linux/jre_bin"/>
    109109                <arg value="cdrom/dist/Java/Linux"/>
    110110            </exec>
    111111            <!--
    112112            don't extract to save space
    113             <exec dir="cdrom/dist/Java/Linux" executable="${rk2.home}/linux/jre_bin"/>
     113            <exec dir="cdrom/dist/Java/Linux" executable="${rk.home}/shared/linux/jre_bin"/>
    114114            <exec dir="cdrom/dist/Java/Linux" executable="tar"><arg value="-xf"/><arg value="jre.tar"/></exec>
    115115            <delete file="cdrom/dist/Java/Linux/jre.tar"/>
     
    118118        <else><if><bool><or><equals arg1="${rk.os}" arg2="windows"/></or></bool>
    119119            <mkdir dir="cdrom/dist/Java/Windows"/>
    120             <exec dir="cdrom/dist/Java/Windows" executable="${rk2.home}/windows/wrapper/jre.exe"/>
     120            <exec dir="cdrom/dist/Java/Windows" executable="${rk.home}/shared/windows/wrapper/jre.exe"/>
    121121
    122122        </if></else></if>
     
    163163            <mkdir dir="wrapped-installer/cdrom"/>
    164164            <!-- create app for cdrom installer -->
    165             <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app"><fileset dir="${rk2.home}/mac/Wrapper.app"/></copy>
    166             <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Resources" file="${rk2.home}/greenstone2/icon/icon.icns"/>
     165            <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app"><fileset dir="${rk.home}/shared/mac/Wrapper.app"/></copy>
     166            <copy todir="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/Resources" file="${rk.home}/shared/greenstone2/icon/icon.icns"/>
    167167            <chmod file="cdrom/dist/Greenstone-${version}-MacOS.app/Contents/MacOS/JavaApplicationStub" perm="+x"/>
    168168
  • main/trunk/release-kits/kits/rk2/ant-scripts/create-components.xml

    r21311 r21394  
    22<project name="rk2-create-components">
    33
    4     <target name="create-components">
     4    <target name="create-components" depends="init,gs2-init">
    55
    66        <antcall target="prepare-component"><param name="component" value="core"/></antcall>
  • main/trunk/release-kits/kits/rk2/ant-scripts/create-distribution.xml

    r21393 r21394  
    22<project name="rk2-create-distribution">
    33
    4     <target name="create-distribution">
     4    <target name="create-distribution" depends="init,gs2-init">
    55
    66        <antcall target="copy-compiled-to-dist"/>
  • main/trunk/release-kits/kits/rk2/ant-scripts/create-installer.xml

    r21311 r21394  
    22<project name="rk2-create-installer">
    33
    4     <target name="create-installer">
     4    <target name="create-installer" depends="init,gs2-init">
    55        <antcall target="copy-installer-files"/>
    66        <antcall target="make-installer-files-concrete"/>
     
    1111
    1212        <copy todir="installer/classes" overwrite="true" file="distributions/web/LICENSE.txt"/>
    13         <unjar src="${rk2.home}/core/ant-tasks/greenstone/anttasks.jar" dest="installer/classes"/>
    14         <unjar src="${rk2.home}/core/lib/crypt.jar" dest="installer/classes"/>
     13        <unjar src="${rk.home}/shared/core/ant-tasks/greenstone/anttasks.jar" dest="installer/classes"/>
     14        <unjar src="${rk.home}/shared/core/lib/crypt.jar" dest="installer/classes"/>
    1515
    1616        <!-- windows -->
    1717        <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
    18             <fileset dir="${rk2.home}/windows/7za" includes="7za.exe"/>
     18            <fileset dir="${rk.home}/shared/windows/7za" includes="7za.exe"/>
    1919        <!-- linux and mac -->
    2020        <else><if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
    21             <unjar src="${rk2.home}/core/ant-tasks/7z-ant/7z.jar" dest="installer/classes"/>
     21            <unjar src="${rk.home}/shared/core/ant-tasks/7z-ant/7z.jar" dest="installer/classes"/>
    2222        </if></else></if>
    2323
  • main/trunk/release-kits/kits/rk2/ant-scripts/wrap.xml

    r21311 r21394  
    22<project name="rk2-wrap" default="wrap">
    33
    4     <target name="wrap">
     4    <target name="wrap" depends="init,gs2-init">
    55
    66        <mkdir dir="products"/>
     
    1313
    1414            <!-- copy wrapper source into place -->
    15             <antcall target="get-copy-of-wrapper-source"><param name="todir" value="wrapped-installer"/></antcall>
     15            <copy todir="wrapped-installer" overwrite="true">
     16                <fileset dir="${rk.home}/shared/windows/wrapper"/>
     17                <fileset dir="${rk.home}/shared/greenstone2/wrapper" includes="*.bmp"/>
     18                <fileset dir="${rk.home}/shared/greenstone2/icon" includes="icon.ico"/>
     19                <fileset dir="${rk.home}/shared/core/search4j" includes="libsearch4j.cpp,libsearch4j.h"/>
     20            </copy>
    1621
    1722            <!-- tweak files for wrapping -->
     
    2429
    2530            <!-- split the resources into chunks, creating a resource script of the chunks -->
    26             <copy todir="${basedir}/wrapped-installer" file="${rk2.home}/windows/wrapper/wrapper.rc" overwrite="true"/>
     31            <copy todir="${basedir}/wrapped-installer" file="${rk.home}/shared/windows/wrapper/wrapper.rc" overwrite="true"/>
    2732            <rsplit
    28                 resource="${rk2.home}/windows/wrapper/${windows-java.installer}"
     33                resource="${rk.home}/shared/windows/wrapper/${windows-java.installer}"
    2934                outputDir="${basedir}/wrapped-installer"                   
    3035                resourceScript="${basedir}/wrapped-installer/wrapper.rc"
     
    6469            <!-- create and setup the build directory -->
    6570            <mkdir dir="${basedir}/wrapped-installer"/>
    66             <copy todir="${basedir}/wrapped-installer" file="${rk2.home}/linux/wrapper.cpp"/>
    67             <copy todir="${basedir}/wrapped-installer" file="${rk2.home}/core/search4j/libsearch4j.cpp"/>
    68             <copy todir="${basedir}/wrapped-installer" file="${rk2.home}/core/search4j/libsearch4j.h"/>
     71            <copy todir="${basedir}/wrapped-installer" file="${rk.home}/shared/linux/wrapper.cpp"/>
     72            <copy todir="${basedir}/wrapped-installer" file="${rk.home}/shared/core/search4j/libsearch4j.cpp"/>
     73            <copy todir="${basedir}/wrapped-installer" file="${rk.home}/shared/core/search4j/libsearch4j.h"/>
    6974
    7075            <!-- copy bundled files -->
    71             <copy todir="${basedir}/wrapped-installer" file="${rk2.home}/linux/${linux-java.installer}"/>
     76            <copy todir="${basedir}/wrapped-installer" file="${rk.home}/shared/linux/${linux-java.installer}"/>
    7277            <copy tofile="${basedir}/wrapped-installer/greenstone2.jar" file="${basedir}/installer/Greenstone-${version}-linux.jar"/>
    7378
     
    117122
    118123            <!-- create app for main installer -->
    119             <copy todir="${basedir}/wrapped-installer/Greenstone${version}.app"><fileset dir="${rk2.home}/mac/Wrapper.app"/></copy>
    120             <copy todir="${basedir}/wrapped-installer/Greenstone${version}.app/Contents/Resources" file="${rk2.home}/greenstone2/icon/icon.icns"/>
     124            <copy todir="${basedir}/wrapped-installer/Greenstone${version}.app"><fileset dir="${rk.home}/shared/mac/Wrapper.app"/></copy>
     125            <copy todir="${basedir}/wrapped-installer/Greenstone${version}.app/Contents/Resources" file="${rk.home}/shared/greenstone2/icon/icon.icns"/>
    121126            <chmod file="${basedir}/wrapped-installer/Greenstone${version}.app/Contents/MacOS/JavaApplicationStub" perm="ug+x"/>
    122127
  • main/trunk/release-kits/kits/sork2/ant-scripts/build.xml

    r21202 r21394  
    136136    </target>
    137137
     138    <target name="export-gsdl-gli">
     139        <delete dir="${dest}"/>
     140        <exec executable="svn">
     141            <arg value="export"/>
     142            <arg value="${svn.root}/main/${branch.path}/greenstone2"/>
     143            <arg value="${dest}"/>
     144        </exec>
     145        <exec executable="svn">
     146            <arg value="export"/>
     147            <arg value="${svn.root}/main/${branch.path}/gli"/>
     148            <arg value="${dest}/gli"/>
     149        </exec>
     150    </target>
     151
    138152
    139153</project>
  • main/trunk/release-kits/shared/greenstone2/ant-scripts/rk2-targets.xml

    r21204 r21394  
    11<?xml version="1.0" encoding="utf-8" ?>
    22<!--
    3         .......................................................... 
     3        ..........................................................
    44        August 2008
    55        Targets for Greenstone2 release kits
     
    1717    </target>
    1818
    19     <target name="export-gsdl-gli">
    20         <delete dir="${dest}"/>
    21         <exec executable="svn">
    22             <arg value="export"/>
    23             <arg value="${svn.root}/main/${branch.path}/greenstone2"/>
    24             <arg value="${dest}"/>
    25         </exec>
    26         <exec executable="svn">
    27             <arg value="export"/>
    28             <arg value="${svn.root}/main/${branch.path}/gli"/>
    29             <arg value="${dest}/gli"/>
    30         </exec>
    31     </target>
    32 
    33     <target name="drop-in-docs">
    34         <echo level="info">Dropping gsdl docs into distribution</echo>
    35         <copy todir="${gsdl.basedir}" overwrite="true">
    36             <fileset dir="${rk.home}/greenstone2/docs" excludes="READMEar.txt,READMEes.txt,READMEfr.txt,READMEru.txt"/>
    37         </copy>
    38     </target>
    39 
    40     <target name="insert-export-to-cd-package">
    41         <mkdir dir="${gsdl.basedir}/bin/windows"/>
    42         <get src="${server.exe.location}" dest="${gsdl.basedir}/bin/windows/server.exe"/>
    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"/>
    45     </target>
    46 
    47     <target name="create-binary-zip-unix">
    48         <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
    49 
    50         <delete dir="${binzip.dir}"/>
    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>
    60             <fileset
    61                 dir="${binzip.dir}"
    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"
    63                 excludes="READMEen.txt"/>
    64         </delete>
    65 
    66     </target>
    67 
    68     <target name="create-binary-zip-windows">
    69         <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/>
    70         <copy todir="${binzip.dir}">
    71             <fileset dir="distributions/web"/>
    72         </copy>
    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 -->
    80         <delete>
    81             <fileset dir="${binzip.dir}" includes="README*.txt,Uninstall.bat,Uninst.bat,uninst.jar,win32.mak,win32cfg.h,makegs2.bat" excludes="READMEen.txt"/>
    82         </delete>
    83     </target>
    84 
    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 
    91     <target name="dist-clean-sourcecode">
    92 
    93         <!-- delete the sourcecode -->
    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"/>
    100         <delete>
    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"/>
    102         </delete>
    103 
    104         </target>
    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">
    117         <exec executable="svn">
    118             <arg value="checkout"/>
    119             <arg value="${svn.root}/main/${branch.path}/greenstone2"/>
    120             <arg value="${basedir}/compiled"/>
    121         </exec>
    122                 <exec executable="svn">
    123             <arg value="checkout"/>
    124             <arg value="${svn.root}/main/${branch.path}/gli"/>
    125             <arg value="${basedir}/compiled/gli"/>
    126         </exec>
    127     </target>
    128 
    129     <target name="compile-gli">
    130 
    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>
    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 
    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>
    164 
    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 
    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 
    19719</project>
    19820   
Note: See TracChangeset for help on using the changeset viewer.