Changeset 18769

Show
Ignore:
Timestamp:
24.03.2009 15:22:06 (10 years ago)
Author:
oranfry
Message:

part of a target splitting off into its own target

Files:
1 modified

Legend:

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

    r18069 r18769  
    3838        <rsr file="${gsdl.basedir}/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}" /> 
    3939 
     40        <antcall target="gsdl-set-dates-in-readmes"><param name="gsdl.basedir" value="${gsdl.basedir}"/></antcall> 
     41 
     42    </target> 
     43 
     44    <target name="gsdl-set-dates-in-readmes"> 
    4045        <echo level="info">Changing date and version in the docs</echo> 
     46 
    4147        <!-- en --> 
    42         <if> 
    43             <bool><available file="${gsdl.basedir}/distributions/web/READMEen.txt"/></bool> 
     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> 
    4452 
    45             <rsr file="${gsdl.basedir}/distributions/web/READMEen.txt"> 
    46                 <job pattern="^(Date\s*)(.*)" replacement="$1${month.default} ${current.year}" /> 
    47                 <job pattern="^(Version\s*)(.*)" replacement="$1${version}" /> 
    48             </rsr> 
     53        <!-- 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> 
    4958 
    50             <!-- 
    51             commented out until these files are updated 
    52             <!- - ar - -> 
    53             <rsr file="${basedir}/distributions/web/READMEar.txt" pattern="(التاريخ : \s*)(.*)" replacement="$1${month.ar} ${current.year}" /> 
    54             <rsr file="${basedir}/distributions/web/READMEar.txt" pattern="(النسخه : \s*)(.*)" replacement="$1${version}" /> 
    55             <!- - es - -> 
    56             <rsr file="${basedir}/distributions/web/READMEes.txt" pattern="^(Fecha\s*)(.*)" replacement="$1${month.es} de ${current.year}" /> 
    57             <rsr file="${basedir}/distributions/web/READMEes.txt" pattern="^(Versi.?n\s*)(.*)" replacement="$1${version}" /> 
    58             <!- - fr - -> 
    59             <rsr file="${basedir}/distributions/web/READMEfr.txt" pattern="^(Date\s*)(.*)" replacement="$1${month.fr} ${current.year}" /> 
    60             <rsr file="${basedir}/distributions/web/READMEfr.txt" pattern="^(Version\s*)(.*)" replacement="$1${version}" /> 
    61             <!- - ru - -> 
    62             <rsr file="${basedir}/distributions/web/READMEru.txt" pattern="^(Дата\s*)(.*)" replacement="$1${month.ru} ${current.year}" /> 
    63             <rsr file="${basedir}/distributions/web/READMEru.txt" pattern="^(ВерсОя\s*)(.*)" replacement="$1${version}" /> 
    64             --> 
    65         </if> 
     59        <!-- 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 
     65        <!-- 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> 
     70 
     71        <!-- 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> 
     76 
    6677    </target> 
     78 
    6779 
    6880    <target name="insert-export-to-cd-package">