Ignore:
Timestamp:
2010-01-27T08:19:07+13:00 (13 years ago)
Author:
oranfry
Message:

tidy-ups

File:
1 moved

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/shared/core/ant-scripts/shared.xml

    r21647 r21648  
    313313    </target>
    314314
     315    <!-- target to set version numbers in gli -->
     316    <target name="gli-set-version-numbers">
     317
     318            <!-- DICTIOANRY FILES (AboutDialog.Date) -->
     319            <echo level="info">Changing AboutDialog.Date in all dictionaries</echo>
     320
     321            <rsr file="${glibasedir}/classes/dictionary_ar.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.ar} ${current.year})" />
     322            <rsr file="${glibasedir}/classes/dictionary_ca.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.ca} de ${current.year})" />
     323            <rsr file="${glibasedir}/classes/dictionary_el.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.el} ${current.year})" />
     324            <rsr file="${glibasedir}/classes/dictionary_es.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.es} ${current.year})" />
     325            <rsr file="${glibasedir}/classes/dictionary_fr.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.fr} ${current.year})" />
     326            <rsr file="${glibasedir}/classes/dictionary_lv.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.lv} ${current.year})" />
     327            <rsr file="${glibasedir}/classes/dictionary_mr.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.mr} ${current.year})" />
     328            <rsr file="${glibasedir}/classes/dictionary_ro.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.ro} ${current.year})" />
     329            <rsr file="${glibasedir}/classes/dictionary_ru.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.ru} ${current.year})" />
     330            <rsr file="${glibasedir}/classes/dictionary_vi.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.vi} ${current.year})" />
     331            <rsr file="${glibasedir}/classes/dictionary_zh.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.zh} ${current.year})" />
     332            <rsr file="${glibasedir}/classes/dictionary.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.default} ${current.year})" />
     333
     334            <!-- GLI GATHERER -->
     335            <echo level="info">Changing version number in gli Gatherer</echo>
     336            <rsr file="${glibasedir}/src/org/greenstone/gatherer/Gatherer.java" pattern="^(.*)String\s*PROGRAM_VERSION\s*=\s*&quot;(.*)&quot;" replacement="$1String PROGRAM_VERSION = &quot;${version}&quot;"/>
     337
     338            <!-- CONFIG XML FILES -->
     339            <echo level="info">Changing configuration version in classes/xml/config.xml</echo>
     340            <rsr file="${glibasedir}/classes/xml/config.xml" pattern="^(\s*&lt;Configuration.* version=&quot;)[^&quot;]*(&quot;.*&gt;)" replacement="$1${version}$2"/>
     341
     342            <echo level="info">Changing configuration version in gli/classes/xml/configRemote.xml</echo>
     343            <rsr file="${glibasedir}/classes/xml/configRemote.xml" pattern="^(\s*&lt;Configuration.* version=&quot;)[^&quot;]*(&quot;.*&gt;)" replacement="$1${version}$2"/>
     344
     345    </target>
     346
     347    <!-- target to tidy gli up for distribution -->
     348    <target name="gli-tidy-for-dist">
     349        <!-- delete unneeded things -->
     350        <delete file="${glibasedir}/.greenstonestore"/>     
     351        <delete dir="${glibasedir}/classes/META-INF"/>
     352        <delete dir="${glibasedir}/classes/org"/>
     353        <delete dir="${glibasedir}/classes/xml"/>
     354        <delete dir="${glibasedir}/classes/images"/>
     355        <delete dir="${glibasedir}/metadata"/>
     356        <delete dir="${glibasedir}/help"/>
     357        <delete dir="${glibasedir}/jar"/>
     358        <delete dir="${glibasedir}/lib"/>
     359        <if><bool><not><equals arg1="windows" arg2="${rk.os}"/></not></bool>
     360            <delete dir="${glibasedir}/winutil"/>
     361        </if>
     362    </target>
     363
     364
    315365    <!-- target to archive and compress a given component -->
    316366    <target name="create-component">
Note: See TracChangeset for help on using the changeset viewer.