Show
Ignore:
Timestamp:
27.01.2010 09:20:02 (10 years ago)
Author:
oranfry
Message:

tidied up the cdrom and documented examples release kits

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/kits/derk/ant-scripts/build.xml

    r21649 r21651  
    1010<project name="derk-build" default="derk"> 
    1111 
    12     <!-- CONSTANTS --> 
    13  
    14     <!-- for the benefit of the shared scripts, set release-kit home --> 
    15     <property name="rk.name" value="derk"/> 
    16     <property name="rk.home" value="${derk.home}" /> 
    17     <property name="rk.os" value="multi" /> 
    18     <property name="os.suffix" value="AnyPlatform"/> 
    19      
    2012    <!-- IMPORT OTHER ANT SCRIPTS --> 
    2113    <import file="${rk.home}/shared/core/ant-scripts/shared.xml"/> 
     
    2315    <!-- THE MAIN TARGET --> 
    2416    <target name="derk" depends="init"> 
    25         <antcall target="export-dec"/> 
    26         <antcall target="tweak-files"/> 
    27         <antcall target="prepare-gs2build"/> 
    28         <antcall target="build-collections"/> 
    29         <antcall target="create-archives"/> 
    30     </target> 
    31  
    32     <target name="properties"> 
    33         <echo>Required Properties:</echo> 
    34         <echo>version           the version string for the release</echo> 
    35         <echo/> 
    36  
    37         <echo>Optional Properties:</echo> 
    38         <echo>branch.path       the branch of gs2build to use to build collections. Default: trunk.</echo> 
    39         <echo/> 
    40     </target> 
    41  
    42     <target name="export-dec"> 
    43         <if><bool><not><available file="dec"/></not></bool> 
     17        <!-- export the documented examples --> 
     18        <if><bool><not><available file="documented-examples"/></not></bool> 
    4419            <exec executable="svn"> 
    4520                <arg value="export"/> 
     
    4823            </exec> 
    4924        </if> 
    50     </target> 
    5125 
    52     <target name="tweak-files"> 
     26        <!-- clean up --> 
    5327        <delete file="documented-examples/text-for-translation.txt"/> 
    54     </target> 
    5528 
    56     <target name="prepare-gs2build"> 
     29        <!-- prepare-gs2build --> 
    5730        <if> 
    5831            <bool><not><available file="gs2build"/></not></bool> 
     
    6336            </exec> 
    6437        </if> 
    65  
    66         <if> 
    67             <bool><not><available file="gs2build/Makefile"/></not></bool> 
     38        <if><bool><not><available file="gs2build/Makefile"/></not></bool> 
    6839            <exec dir="gs2build" executable="/bin/bash" failonerror="true"><arg value="./configure"/></exec> 
    6940            <exec dir="gs2build/common-src" executable="make" failonerror="true"/> 
     
    7344            <exec dir="gs2build" executable="make" failonerror="true"><arg value="install"/></exec> 
    7445        </if> 
    75     </target> 
    7646 
    77     <target name="build-collections"> 
     47        <!-- build the collections --> 
    7848        <exec dir="gs2build" executable="${derk.home}/resources/build.sh" failonerror="true"/> 
    79     </target> 
    8049 
    81     <target name="create-archives"> 
     50 
     51        <!-- create archives --> 
    8252        <mkdir dir="products"/> 
    8353        <zip destfile="products/Greenstone-documented-examples-${version}.zip"  basedir="." includes="documented-examples/**/*"/> 
     
    8555            <arg line="-czf products/Greenstone-documented-examples-${version}.tar.gz documented-examples"/> 
    8656        </exec> 
     57 
    8758    </target> 
    8859 
     60    <target name="properties" depends="core-properties"/> 
     61 
    8962</project>