Changeset 18052 for release-kits

Show
Ignore:
Timestamp:
04.12.2008 11:20:20 (11 years ago)
Author:
oranfry
Message:

replace version and dates in the readme file

Files:
1 modified

Legend:

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

    r18016 r18052  
    2121 
    2222    <target name="gsdl-set-version-numbers"> 
     23 
    2324        <echo level="info">Setting version in src/lib/gsdlconf.h</echo> 
    2425        <rsr file="${gsdl.basedir}/common-src/src/lib/gsdlconf.h" pattern="(#define GSDL_VERSION) &quot;.*&quot;" replacement="$1 &quot;${version}&quot;" /> 
     
    2930        <echo level="info">Setting version in etc/VERSION</echo> 
    3031        <rsr file="${gsdl.basedir}/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}" /> 
     32 
     33        <echo level="info">Changing date and version in the docs</echo> 
     34        <!-- en --> 
     35        <rsr file="${basedir}/distributions/web/READMEen.txt"> 
     36            <job pattern="^(Date\s*)(.*)" replacement="$1${month.default} ${current.year}" /> 
     37            <job pattern="^(Version\s*)(.*)" replacement="$1${version}" /> 
     38        </rsr> 
     39 
     40        <!-- 
     41        commented out until these files are updated 
     42        <!- - ar - -> 
     43        <rsr file="${basedir}/distributions/web/READMEar.txt" pattern="(التاريخ : \s*)(.*)" replacement="$1${month.ar} ${current.year}" /> 
     44        <rsr file="${basedir}/distributions/web/READMEar.txt" pattern="(النسخه : \s*)(.*)" replacement="$1${version}" /> 
     45        <!- - es - -> 
     46        <rsr file="${basedir}/distributions/web/READMEes.txt" pattern="^(Fecha\s*)(.*)" replacement="$1${month.es} de ${current.year}" /> 
     47        <rsr file="${basedir}/distributions/web/READMEes.txt" pattern="^(Versi.?n\s*)(.*)" replacement="$1${version}" /> 
     48        <!- - fr - -> 
     49        <rsr file="${basedir}/distributions/web/READMEfr.txt" pattern="^(Date\s*)(.*)" replacement="$1${month.fr} ${current.year}" /> 
     50        <rsr file="${basedir}/distributions/web/READMEfr.txt" pattern="^(Version\s*)(.*)" replacement="$1${version}" /> 
     51        <!- - ru - -> 
     52        <rsr file="${basedir}/distributions/web/READMEru.txt" pattern="^(Дата\s*)(.*)" replacement="$1${month.ru} ${current.year}" /> 
     53        <rsr file="${basedir}/distributions/web/READMEru.txt" pattern="^(ВерсОя\s*)(.*)" replacement="$1${version}" /> 
     54        --> 
    3155    </target> 
    3256 
     
    79103    </target> 
    80104 
     105    <target name="create-needed-empty-files"> 
     106        <mkdir dir="${gsdl.basedir}/tmp"/> 
     107        <chmod dir="${gsdl.basedir}/tmp" perm="a+rwx"/> 
     108        <echo file="${gsdl.basedir}/etc/usage.txt"></echo> 
     109    </target> 
     110 
    81111</project> 
    82112