Ignore:
Timestamp:
2008-11-20T16:33:21+13:00 (15 years ago)
Author:
oranfry
Message:

Standardised names of directories used in release kits

  • gsdl and greenstone3 -> compiled
  • distribution and distributions -> distributions
  • greenstone3 and web -> web

And, expect more specifically named properties files, e.g., lirk3-build.properties, wirk2-build.properties

File:
1 edited

Legend:

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

    r17810 r17898  
    1212    <property name="version.major" value="2"/>
    1313
    14     <target name="compile-uninstaller">
    15         <echo>Compiling Uninstaller</echo>
     14    <target name="gsdl-set-version-numbers">
     15        <echo level="info">Setting version in src/lib/gsdlconf.h</echo>
     16        <rsr file="${gsdl.basedir}/common-src/src/lib/gsdlconf.h" pattern="(#define GSDL_VERSION) &quot;.*&quot;" replacement="$1 &quot;${version}&quot;" />
    1617
    17         <!-- create working build directory -->
    18         <mkdir dir="${basedir}/gsdl/uninstaller/build/resources" />
     18        <echo level="info">Setting version in Install.sh</echo>
     19        <rsr file="${gsdl.basedir}/Install.sh" pattern="(echo &quot;Version: ).*(&quot; .*)" replacement="$1${version}$2" />
    1920
    20         <!-- copile to build -->
    21         <javac
    22             srcdir="${rk.home}/uninstaller"
    23             destdir="${basedir}/gsdl/uninstaller/build" />
    24 
    25         <!-- copy language bundle into place -->
    26         <native2ascii
    27             implementation="sun"
    28             src="${rk.home}/language-strings"
    29             dest="${basedir}/gsdl/uninstaller/build/resources"/>
    30 
    31         <!-- jar it all up -->
    32         <jar
    33             destfile="${basedir}/gsdl/uninstaller/uninst.jar"
    34             manifest="${rk.home}/uninstaller/manifest.mf"
    35             basedir="${basedir}/gsdl/uninstaller/build" />
    36 
    37     </target>
    38 
    39     <target name="insert-uninstaller">
    40         <copy file="gsdl/uninstaller/uninst.jar" todir="distributions/web" />
    41         <copy file="${rk.home}/uninstaller/Uninstall.${script-format}" todir="distributions/web" />
     21        <echo level="info">Setting version in etc/VERSION</echo>
     22        <rsr file="${gsdl.basedir}/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}" />
    4223    </target>
    4324
     
    4930    </target>
    5031
    51     <!-- source-release -->
    52     <target name="prepare-source-release">
    53         <delete dir="components/tmp/source-release"/>
    54         <mkdir dir="components/tmp/source-release"/>
    55 
    56         <copy todir="components/tmp/source-release" overwrite="true">
    57             <fileset dir="distributions/source"/>
    58         </copy>
    59         <zip destfile="components/source-release.comp" basedir="components/tmp/source-release" compress="false" includes="**/*"/>
    60     </target>
    61 
    62 
    6332</project>
Note: See TracChangeset for help on using the changeset viewer.