Ignore:
Timestamp:
2009-06-26T16:36:47+12:00 (15 years ago)
Author:
oranfry
Message:

changes to wirk3 comparable to the ones just done on lirk3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/wirk3/ant-scripts/create-distribution.xml

    r19935 r19936  
    33
    44    <target name="create-distribution">
    5 
    65        <!-- create distribution -->
    7         <antcall target="export-greenstone3-gli" />
    8         <antcall target="generate-build-properties"><param name="greenstone3.basedir" value="distributions/web"/></antcall>
    9         <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/web" /></antcall>
    10         <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli" /></antcall>
    11         <antcall target="insert-user-manual"/>
    12         <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from rk3-targets -->
    13 
    14         <ant target="create-distribution-1" dir="distributions/web" inheritAll="false">
    15             <property name="app.version" value="${version}"/>
    16             <property name="branch.path" value="${branch.path}"/>
    17             <property name="branch.revision" value="${branch.revision}"/>
    18         </ant>
    19 
    20         <antcall target="insert-icon"/>
    21 
    22         <ant target="create-distribution-2" dir="distributions/web" inheritAll="false">
    23             <property name="app.version" value="${version}"/>
    24             <property name="branch.path" value="${branch.path}"/>
    25             <property name="branch.revision" value="${branch.revision}"/>
    26         </ant>
    27         <ant target="create-distribution-3" dir="distributions/web" inheritAll="false">
    28             <property name="app.version" value="${version}"/>
    29             <property name="branch.path" value="${branch.path}"/>
    30             <property name="branch.revision" value="${branch.revision}"/>
    31         </ant>
    32         <antcall target="copy-over-build-xml" />
    33         <antcall target="insert-compiled-binaries"/>
    34 
    35     </target>
    36 
    37     <target name="export-greenstone3-gli">
    38         <mkdir dir="distributions"/>
    39         <delete dir="distributions/web"/>
    40         <svn>
    41             <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distributions/web" revision="${branch.revision}"/>
    42             <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli" revision="${branch.revision}"/>
    43         </svn>
    44     </target>
    45 
    46     <target name="copy-over-build-xml">
    47         <if><bool><istrue value="${execute}"/></bool>
    48             <move file="distributions/web/modified-build.xml" tofile="distributions/web/build.xml"/>
    49         </if>
    50     </target>
    51 
    52     <target name="insert-user-manual">
    53         <copy file="compiled/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distributions/web/docs/manual/gs2_user_en.pdf"/>
    54     </target>
    55 
    56     <target name="insert-compiled-binaries">
    57 
    58         <delete dir="distributions/web/lib/jni"/>
    59         <copy todir="distributions/web/lib/jni"><fileset dir="compiled/lib/jni"/></copy>
    60        
    61         <delete dir="distributions/web/gs2build/bin/windows"/>
    62         <copy todir="distributions/web/gs2build/bin/windows"><fileset dir="compiled/gs2build/bin/windows"/></copy>
    63 
    64         <delete dir="distributions/web/gs2build/bin/java"/>
    65         <copy todir="distributions/web/gs2build/bin/java"><fileset dir="compiled/gs2build/bin/java"/></copy>
    66 
    67         <copy todir="distributions/web/bin" file="compiled/bin/search4j.exe"/>
    68     </target>
    69    
    70     <target name="insert-icon">
    71         <copy
    72             file="${wirk3.home}/greenstone3/icon/icon.ico"
    73             tofile="distributions/web/resources/images/gs3.ico"/>
     6        <antcall target="copy-compiled-to-dist"/> <!-- from init -->
     7        <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from init -->
     8        <antcall target="clean-user-manual"/>
     9        <antcall target="clean-uninstaller"/>
     10        <antcall target="strip-svn-dirs"><param name="dir" value="distributions"/></antcall> <!-- from init -->
    7411    </target>
    7512
Note: See TracChangeset for help on using the changeset viewer.