Changeset 13400


Ignore:
Timestamp:
2006-12-01T14:40:42+13:00 (17 years ago)
Author:
kjdon
Message:

reorganised the create distributions targets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/dist-resources/dist-build.xml

    r13378 r13400  
    1919  <!-- Create the binaries for windows distribution -->
    2020  <target name="prepare-windows" depends="init">
    21     <cvs command="export -D '1 second ago'" package="mgpp"
     21    <cvs command="checkout -P" package="mgpp"
    2222      dest="${src.packages.home}"
    2323      cvsRoot="${cvs.root}" />
    24     <cvs command="export -D '1 second ago'" package="gs2build"
     24    <cvs command="checkout -P" package="gs2build"
    2525      cvsRoot="${cvs.root}" />
    2626    <antcall target="unzip-windows-packages"/>
    2727    <antcall target="checkout-winbin"/>
     28    <antcall target="get-perl-for-windows"/>
     29  </target>
     30 
     31  <target name="build-windows" depends="init">
     32    <antcall target="cvsupdate-distribution"/>
     33    <cvs command="update -dP" package="winbin"
     34      cvsRoot="${cvs.root}" />
    2835    <antcall target="get-windows-binaries"/>
    29     <antcall target="get-perl-for-windows"/>
    3036    <antcall target="rename-gs2build-files-windows"/>
    3137    <antcall target="compile-windows-c++"/>
    3238    <antcall target="compile-packages"/>
    3339   </target>
    34 
    35   <!-- Create the binaries for Mac distribution -->
    36   <target name="prepare-macos-1" depends="init">
    37     <cvs command="export -D '1 second ago'" package="mgpp"
     40 
     41  <!-- Create the binaries for Unix/Mac distributions -->
     42  <target name="prepare-unix" depends="init">
     43    <cvs command="checkout -P" package="mgpp"
    3844      dest="${src.packages.home}"
    3945      cvsRoot="${cvs.root}" />
    40     <cvs command="export -D '1 second ago'" package="gs2build"
    41       cvsRoot="${cvs.root}" />
     46    <cvs command="checkout -P" package="gs2build"
     47      cvsRoot="${cvs.root}" />
     48  </target>
     49
     50  <target name="update-unix" depends="init">
     51    <antcall target="cvsupdate-distribution"/>
    4252    <antcall target="rename-gs2build-files-unix"/>
    4353    <antcall target="delete-windows-files"/>
    44     <antcall target="get-macos-extra"/>
     54  </target>
     55 
     56  <target name="configure-unix" depends="init">
    4557    <antcall target="configure-c++"/>
    46   </target>
    47  
    48   <target name="prepare-macos-2" depends="init">
     58  </target>   
     59  <target name="build-unix" depends="init">
    4960    <antcall target="compile-packages"/>
    5061    <antcall target="compile-gs2build"/>
    5162  </target>
    52  
    53   <!-- Get the binaries for linux distribution -->
    54   <target name="prepare-linux-1" depends="init">
    55     <cvs command="export -D '1 second ago'" package="mgpp"
    56       dest="${src.packages.home}"
    57       cvsRoot="${cvs.root}" />
    58     <cvs command="export -D '1 second ago'" package="gs2build"
    59       cvsRoot="${cvs.root}" />
    60     <cvs command="export -D '1 second ago'" package="gli"
    61       cvsRoot="${cvs.root}" />
    62     <delete file="${gli.home}/gli.bat"/>
    63     <delete file="${gli.home}/gli.sh"/>
    64     <antcall target="rename-gs2build-files-unix"/>
    65     <!--<antcall target="checkout-winbin"/>
    66     <antcall target="get-windows-binaries"/>
    67     <antcall target="get-perl-for-windows"/>-->
    68     <delete>
    69       <fileset dir="${lib.jni}" includes="*.dll"/>
    70     </delete>
    71   </target>
    72  
    73  
    74   <target name="prepare-linux-2" depends="init">
    75     <antcall target="configure-c++"/>
    76   </target>
    77  
    78   <target name="prepare-linux-3" depends="init">
    79     <antcall target="compile-packages"/>
    80     <antcall target="compile-gs2build"/>
    81   </target>
    82  
     63   
    8364  <!-- creates the base distribution. Needs binaries copied in to it from other
    84     greenstones (prepare-for-dists) -->
     65    greenstones (prepare-os targets) -->
    8566  <target name="create-distribution-1" depends="init" description="do all the initial downloading and setting up">
    8667    <cvs command="export -D '1 second ago'" package="mgpp"
     
    9778   
    9879    <!--<antcall target="unzip-windows-packages"/> do we need this?-->
    99     <antcall target="get-macos-extra"/>
    10080    <antcall target="download-tomcat"/>
    10181    <delete file="${packages.home}/apache-tomcat-5.5.12.zip"/>
     
    10989
    11090    <antcall target="prepare-collections"/>
    111     <antcall target="install-macos-extra"/>
     91
     92    <!-- get good XML-Parser - does this work? -->
     93    <antcall target="get-xml-parser"/>
    11294    <!-- documented collections -->
    11395    <antcall target="get-documented-collections"/>
     
    134116    <!-- compile the java stuff -->
    135117    <antcall target="compile-web"/>
    136     <antcall target="configure-packages"/>
     118<!--    <antcall target="configure-packages"/>
    137119    <antcall target="compile-packages"/>
    138     <antcall target="distclean-packages"/>
     120    <antcall target="distclean-packages"/>-->
    139121    <antcall target="compile-core"/>
    140122    <antcall target="compile-gli"/>
     
    227209    <!--<delete dir="${basedir}/dist-resources"/>-->
    228210
     211  </target>
     212
     213  <!-- Supplementary targets -->
     214
     215  <target name="cvsupdate-distribution" depends="init">
     216    <antcall target="cvsupdate-packages"/>
     217    <antcall target="cvsupdate-core"/>
     218    <antcall target="cvsupdate-gs2build"/>
     219    <antcall target="cvsupdate-web"/>
    229220  </target>
    230221
     
    307298      <fileset dir="${documented.collections.home}/wrdpdf-e"/>
    308299    </copy>
     300  </target>
     301
     302  <target name="get-xml-parser" depends="init">
     303    <get src="http://www.greenstone.org/gs3files/XML-Parser.tar.gz"
     304      dest="${gs2build.home}/perllib/cpan/XML-Parser.tar.gz"
     305      usetimestamp="true"/>
     306    <untar src="${gs2build.home}/perllib/cpan/XML-Parser.tar.gz"
     307      dest="${gs2build.home}/perllib/cpan/"
     308      compression="gzip"/>
     309    <delete file="${gs2build.home}/perllib/cpan/XML-Parser.tar.gz"/>
    309310  </target>
    310311
Note: See TracChangeset for help on using the changeset viewer.