Show
Ignore:
Timestamp:
22.12.2009 14:41:20 (11 years ago)
Author:
oranfry
Message:

added missing targets

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/kits/rk2/ant-scripts/create-distribution.xml

    r21311 r21393  
    99        <antcall target="strip-svn-dirs"><param name="dir" value="${basedir}/distributions/web"/></antcall> 
    1010 
     11        <!-- create needed empty files --> 
     12        <mkdir dir="distributions/web/tmp"/> 
     13        <chmod dir="distributions/web/tmp" perm="a+rwx"/> 
     14        <echo file="distributions/web/etc/usage.txt"></echo> 
     15 
    1116        <!-- windows --> 
    1217        <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool> 
    1318            <antcall target="copy-server"/> 
    14             <antcall target="remove-unneeded-files" /> 
    15             <antcall target="create-needed-empty-files"><param name="gsdl.basedir" value="distributions/web"/></antcall> 
    1619            <antcall target="create-binary-zip-windows"/> 
     20 
     21            <!-- unneeded files --> 
     22            <delete dir="${basedir}/distributions/web/bin/linux" /> 
     23            <delete><fileset dir="${basedir}/distributions/web" includes="*.bash,*.sh,*.csh,.gstermrc"/></delete> 
     24            <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.sh,*4gs3.bat"/></delete> 
     25            <delete dir="${basedir}/distributions/web/autom4te.cache" /> 
    1726 
    1827        <!-- linux --> 
    1928        <else><if><bool><equals arg1="${rk.os}" arg2="linux"/></bool> 
    20             <antcall target="insert-export-to-cd-package"><param name="gsdl.basedir" value="distributions/web"/></antcall> <!-- from rk2-targets --> 
     29            <antcall target="insert-export-to-cd-package"><param name="gsdl.basedir" value="distributions/web"/></antcall> 
    2130            <antcall target="export-imagemagick-linux-binaries"/> 
    2231            <antcall target="export-wvware-linux-binaries"/> 
    23             <antcall target="remove-unneeded-files" /> 
    24             <antcall target="create-needed-empty-files"><param name="gsdl.basedir" value="distributions/web"/></antcall> 
     32 
     33            <!-- unneeded files --> 
     34            <delete><fileset dir="${basedir}/distributions/web" includes="win32.mak,win32cfg.h,Install.sh,Support.htm,micotest.cpp"/></delete> 
     35            <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.bat"/></delete> 
     36            <delete><fileset dir="${basedir}/distributions/web" includes="*.bat"/></delete> 
     37            <delete dir="${basedir}/distributions/web/common-src/packages/windows"/> 
     38            <delete dir="${basedir}/distributions/web/common-src/indexers/packages/windows"/> 
    2539 
    2640        <!-- mac --> 
    2741        <else><if><bool><equals arg1="${rk.os}" arg2="mac"/></bool> 
    28             <antcall target="insert-export-to-cd-package"><param name="gsdl.basedir" value="distributions/web"/></antcall> <!-- from rk2-targets --> 
     42            <antcall target="insert-export-to-cd-package"><param name="gsdl.basedir" value="distributions/web"/></antcall> 
    2943            <antcall target="export-imagemagick-darwin-binaries" /> 
    3044            <antcall target="export-ghostscript-darwin-binaries" /> 
    31             <antcall target="remove-unneeded-files"/> 
    32             <antcall target="create-needed-empty-files"><param name="gsdl.basedir" value="distributions/web"/></antcall> 
     45 
     46            <!-- unneeded files --> 
     47            <delete><fileset dir="${basedir}/distributions/web" includes="win32.mak,win32cfg.h,Install.sh,Support.htm"/></delete> 
     48            <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.bat"/></delete> 
     49            <delete><fileset dir="${basedir}/distributions/web" includes="*.bat"/></delete> 
     50            <delete dir="${basedir}/distributions/web/common-src/packages/windows"/> 
     51 
    3352 
    3453        </if></else></if></else></if> 
    3554 
     55        <!-- unneeded files --> 
     56        <delete dir="${basedir}/distributions/web/uninstaller" /> 
     57        <delete file="${basedir}/distributions/web/gli/.greenstonestore" /> 
     58        <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" /> 
     59 
    3660    </target> 
    3761 
     62    <target name="export-imagemagick-linux-binaries"> 
     63        <delete dir="distributions/web/bin/linux/imagemagick"/> 
     64        <svn> 
     65            <export srcurl="${svn.root}/main/${branch.path}/binaries/linux/imagemagick" destPath="distributions/web/bin/linux/imagemagick"/> 
     66        </svn> 
     67    </target> 
     68     
     69    <target name="export-wvware-linux-binaries"> 
     70        <delete dir="distributions/web/bin/linux/wv"/> 
     71        <svn> 
     72            <export srcurl="${svn.root}/main/${branch.path}/binaries/linux/wv" destPath="distributions/web/bin/linux/wv"/> 
     73        </svn> 
     74    </target> 
     75 
     76    <target name="export-imagemagick-darwin-binaries"> 
     77        <delete dir="distributions/web/bin/darwin/imagemagick"/> 
     78        <exec executable="svn"> 
     79            <arg value="export"/> 
     80            <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/imagemagick"/> 
     81            <arg value="distributions/web/bin/darwin/imagemagick"/> 
     82        </exec> 
     83    </target> 
     84     
     85    <target name="export-ghostscript-darwin-binaries"> 
     86        <delete dir="distributions/web/bin/darwin/ghostscript"/> 
     87        <exec executable="svn"> 
     88            <arg value="export"/> 
     89            <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/ghostscript"/> 
     90            <arg value="distributions/web/bin/darwin/ghostscript"/> 
     91        </exec> 
     92    </target> 
     93 
     94 
    3895</project>