Ignore:
Timestamp:
2009-08-03T11:49:27+12:00 (15 years ago)
Author:
oranfry
Message:

more generalisation, and wrok on mark3

File:
1 edited

Legend:

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

    r19935 r20112  
    11<?xml version="1.0" encoding="utf-8" ?>
    22<project name="mark3-create-distribution" default="create-distribution">
    3 
    4     <target name="create-distribution">
    5 
    6         <!-- create distribution -->
    7         <antcall target="export-greenstone3-gli" />
    8         <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/web"/></antcall>
    9         <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli"/></antcall>
    10         <antcall target="insert-user-manual"/>
    11         <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from init -->
    12         <antcall target="insert-uninstaller-jar"/> <!-- 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         <ant target="create-distribution-2" dir="distributions/web" inheritAll="false">
    21             <property name="app.version" value="${version}"/>
    22             <property name="branch.path" value="${branch.path}"/>
    23             <property name="branch.revision" value="${branch.revision}"/>
    24         </ant>
    25 
    26         <ant target="create-distribution-3" dir="distributions/web" inheritAll="false">
    27             <property name="app.version" value="${version}"/>
    28             <property name="branch.path" value="${branch.path}"/>
    29             <property name="branch.revision" value="${branch.revision}"/>
    30         </ant>
    31 
    32         <antcall target="copy-over-build-xml" />
    33         <antcall target="insert-compiled-binaries"/>
    34         <antcall target="export-imagemagick-darwin-binaries" />
    35         <antcall target="export-ghostscript-darwin-binaries" />
    36         <antcall target="strip-svn-dirs"><param name="dir" value="distributions"/></antcall> <!-- from init -->
    37     </target>
    38 
    39     <target name="export-greenstone3-gli">
    40         <mkdir dir="distributions"/>
    41         <delete dir="distributions/web"/>
    42         <svn javahl="false">
    43             <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distributions/web"/>
    44             <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli"/>
    45         </svn>
    46     </target>
    47    
    48     <target name="export-imagemagick-darwin-binaries">
    49         <delete dir="distributions/web/gs2build/bin/darwin/imagemagick"/>
    50         <svn>
    51             <export srcurl="${svn.root}/other-projects/trunk/mac-binaries/intel/imagemagick" destPath="distributions/web/gs2build/bin/darwin/imagemagick"/>
    52         </svn>
    53     </target>
    54    
    55     <target name="export-ghostscript-darwin-binaries">
    56         <delete dir="distributions/web/gs2build/bin/darwin/ghostscript"/>
    57         <svn>
    58             <export srcurl="${svn.root}/other-projects/trunk/mac-binaries/intel/ghostscript" destPath="distributions/web/gs2build/bin/darwin/ghostscript"/>
    59         </svn>
    60     </target>
    61 
    62     <target name="copy-over-build-xml">
    63         <move file="distributions/web/modified-build.xml" tofile="distributions/web/build.xml"/>
    64     </target>
    65 
    66     <target name="insert-user-manual">
    67         <copy file="compiled/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distributions/web/docs/manual/gs2_user_en.pdf"/>
    68     </target>
    69 
    70     <target name="insert-compiled-binaries">
    71         <delete dir="distributions/web/lib/jni"/>
    72         <exec executable="cp"><arg line="-r compiled/lib/jni distributions/web/lib"/></exec>
    73 
    74         <delete dir="distributions/web/gs2build/bin/darwin"/>
    75         <exec executable="cp"><arg line="-r compiled/gs2build/bin/darwin distributions/web/gs2build/bin"/></exec>
    76 
    77         <delete dir="distributions/web/gs2build/bin/java"/>
    78         <exec executable="cp"><arg line="-r compiled/gs2build/bin/java distributions/web/gs2build/bin"/></exec>
    79         <exec executable="cp"><arg line="compiled/bin/search4j distributions/web/bin"/></exec>
    80     </target>
    81 
     3    <target name="create-distribution" depends="greenstone3-create-distribution"/>
    824</project>
Note: See TracChangeset for help on using the changeset viewer.