Show
Ignore:
Timestamp:
02.12.2008 11:38:30 (11 years ago)
Author:
oranfry
Message:

sorting out the binary zip release

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • release-kits/shared/greenstone2/ant-scripts/rk2-targets.xml

    r17958 r17996  
    3838    </target> 
    3939 
     40    <target name="create-binary-zip-linux"> 
     41        <property name="binzip.dir" value="distributions/Greenstone-${version}-${os.suffix}-binary"/> 
     42        <!-- 
     43        <exec dir="${basedir}" executable="cp"><arg line="-r distributions/web ${binzip.dir}"/></exec> 
     44        <exec dir="${basedir}" executable="cp"><arg line="${binzip.dir}/bin/linux/library distributions/Greenstone-${version}-${os.suffix}-binary/cgi-bin"/></exec> 
     45        <exec dir="${basedir}" executable="cp"><arg line="${binzip.dir}/bin/linux/oaiserver distributions/Greenstone-${version}-${os.suffix}-binary/cgi-bin"/></exec> 
     46        --> 
     47 
     48        <!-- delete sourcecode --> 
     49        <delete dir="${binzip.dir}/common-src"/> 
     50        <delete dir="${binzip.dir}/build-src"/> 
     51        <delete dir="${binzip.dir}/runtime-src"/> 
     52 
     53        <!-- delete loose files --> 
     54        <delete> 
     55            <fileset dir="${binzip.dir}" includes="README*.txt,Uninstall.sh,uninst.jar" excludes="READMEen.txt"/> 
     56        </delete> 
     57 
     58    </target> 
     59 
     60    <target name="create-binary-zip-windows"> 
     61        <copy todir="distributions/Greenstone-${version}-${os.suffix}-binary"> 
     62            <fileset dir="distributions/web"/> 
     63        </copy> 
     64        <copy todir="distributions/Greenstone-${version}-${os.suffix}-binary/cgi-bin"> 
     65            <fileset dir="distributions/Greenstone-${version}-${os.suffix}-binary/bin/${shell.os}"> 
     66                <includes name="library,oaiservr"/> 
     67            </fileset> 
     68        </copy> 
     69        <delete> 
     70            <fileset dir="distributions/Greenstone-${version}-${os.suffix}-binary"> 
     71                <include name="common-src/**/*"/> 
     72                <include name="common-src"/> 
     73                <include name="build-src/**/*"/> 
     74                <include name="build-src"/> 
     75                <include name="runtime-src/**/*"/> 
     76                <include name="runtime-src"/> 
     77                <include name="README*.txt"/> 
     78                <exclude name="READMEen.txt"/> 
     79                <include name="Uninstaller.bat"/> 
     80                <include name="uninst.bat"/> 
     81                <include name="uninst.jar"/> 
     82            </fileset> 
     83        </delete> 
     84    </target> 
     85 
    4086</project>