Changeset 18774

Show
Ignore:
Timestamp:
25.03.2009 12:22:17 (10 years ago)
Author:
oranfry
Message:

protect from a needless error while changing dates in readmes

Files:
1 modified

Legend:

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

    r18769 r18774  
    2929    <target name="gsdl-set-version-numbers"> 
    3030 
    31         <echo level="info">Setting version in src/lib/gsdlconf.h</echo> 
     31        <echo level="info">Setting version in common-src/src/lib/gsdlconf.h</echo> 
    3232        <rsr file="${gsdl.basedir}/common-src/src/lib/gsdlconf.h" pattern="(#define GSDL_VERSION) &quot;.*&quot;" replacement="$1 &quot;${version}&quot;" /> 
    3333 
     
    4646 
    4747        <!-- en --> 
    48         <rsr file="${gsdl.basedir}/READMEen.txt"> 
    49             <job pattern="^(Date\s*)(.*)" replacement="$1${month.default} ${current.year}" /> 
    50             <job pattern="^(Version\s*)(.*)" replacement="$1${version}" /> 
    51         </rsr> 
     48        <if><bool><available file="${gsdl.basedir}/READMEen.txt"/></bool> 
     49            <rsr file="${gsdl.basedir}/READMEen.txt"> 
     50                <job pattern="^(Date\s*)(.*)" replacement="$1${month.default} ${current.year}" /> 
     51                <job pattern="^(Version\s*)(.*)" replacement="$1${version}" /> 
     52            </rsr> 
     53        </if> 
    5254 
    5355        <!-- ar --> 
    54         <rsr file="${gsdl.basedir}/READMEar.txt"> 
    55             <job pattern="(التاريخ : \s*)(.*)" replacement="$1${month.ar} ${current.year}"/> 
    56             <job pattern="(النسخه : \s*)(.*)" replacement="$1${version}"/> 
    57         </rsr> 
     56        <if><bool><available file="${gsdl.basedir}/READMEar.txt"/></bool> 
     57            <rsr file="${gsdl.basedir}/READMEar.txt"> 
     58                <job pattern="(التاريخ : \s*)(.*)" replacement="$1${month.ar} ${current.year}"/> 
     59                <job pattern="(النسخه : \s*)(.*)" replacement="$1${version}"/> 
     60            </rsr> 
     61        </if> 
    5862 
    5963        <!-- es --> 
    60         <rsr file="${gsdl.basedir}/READMEes.txt"> 
    61             <job pattern="^(Fecha\s*)(.*)" replacement="$1${month.es} de ${current.year}"/> 
    62             <job pattern="^(Versi.?n\s*)(.*)" replacement="$1${version}"/> 
    63         </rsr> 
     64        <if><bool><available file="${gsdl.basedir}/READMEes.txt"/></bool> 
     65            <rsr file="${gsdl.basedir}/READMEes.txt"> 
     66                <job pattern="^(Fecha\s*)(.*)" replacement="$1${month.es} de ${current.year}"/> 
     67                <job pattern="^(Versi.?n\s*)(.*)" replacement="$1${version}"/> 
     68            </rsr> 
     69        </if> 
    6470 
    6571        <!-- fr --> 
    66         <rsr file="${gsdl.basedir}/READMEfr.txt"> 
    67             <job pattern="^(Date\s*)(.*)" replacement="$1${month.fr} ${current.year}"/> 
    68             <job pattern="^(Version\s*)(.*)" replacement="$1${version}"/> 
    69         </rsr> 
     72        <if><bool><available file="${gsdl.basedir}/READMEfr.txt"/></bool> 
     73            <rsr file="${gsdl.basedir}/READMEfr.txt"> 
     74                <job pattern="^(Date\s*)(.*)" replacement="$1${month.fr} ${current.year}"/> 
     75                <job pattern="^(Version\s*)(.*)" replacement="$1${version}"/> 
     76            </rsr> 
     77        </if> 
    7078 
    7179        <!-- ru --> 
    72         <rsr file="${gsdl.basedir}/READMEru.txt"> 
    73             <job pattern="^(Дата\s*)(.*)" replacement="$1${month.ru} ${current.year}"/> 
    74             <job pattern="^(ВерсОя\s*)(.*)" replacement="$1${version}"/> 
    75         </rsr> 
     80        <if><bool><available file="${gsdl.basedir}/READMEru.txt"/></bool> 
     81            <rsr file="${gsdl.basedir}/READMEru.txt"> 
     82                <job pattern="^(Дата\s*)(.*)" replacement="$1${month.ru} ${current.year}"/> 
     83                <job pattern="^(ВерсОя\s*)(.*)" replacement="$1${version}"/> 
     84            </rsr> 
     85        </if> 
    7686 
    7787    </target>