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

it's all good stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/lirk3/ant-scripts/compile.xml

    r17898 r19935  
    44    <target name="compile">
    55
    6         <!-- checkout -->
    76        <antcall target="checkout-greenstone3" />
     7        <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="compiled"/></antcall>
     8        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="compiled/gli" /></antcall>
     9        <ant dir="compiled" inheritAll="false">
     10            <target name="prepare"/>
     11            <target name="install"/>
     12            <target name="dist-tidy"/>
     13            <propertyset refid="forward.properties"/>
     14        </ant>
     15        <antcall target="insert-xml-parser"/>
     16        <antcall target="insert-ant"/>
     17        <antcall target="insert-documented-examples"/>
     18        <antcall target="insert-imagemagick-linux-binaries"/>
     19        <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
     20        <antcall target="prepare-documentation"/> <!-- from rk3-targets -->
    821
    9         <!-- preparation -->
    10         <antcall target="greenstone3-set-version-numbers">
    11             <param name="greenstone3basedir" value="${basedir}/compiled"/>
    12         </antcall>
    13         <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-unix"  inheritAll="false"/>
     22        <!-- tweakers -->
     23        <!--<antcall target="tweak-configure-scripts" />
     24        <antcall target="regenerate-configure"/>
     25        <antcall target="tweak-makefiles" />
     26        <antcall target="linux-strip-execs" />
     27        -->
    1428
    15         <antcall target="tweak-configure-scripts" />
    16 
    17         <!-- update -->
    18         <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="update-unix"  inheritAll="false"/>
    19 
    20         <!-- configure -->
    21         <antcall target="regenerate-configure"/>
    22         <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="configure-unix" inheritAll="false"/>
    23         <antcall target="tweak-makefiles" />
    24 
    25         <!-- build -->
    26         <ant dir="compiled" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-unix" inheritAll="false"/>
    27         <antcall target="linux-strip-execs" />
    28 
    29         <!-- uninstaller -->
    30         <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
    31 
    32         <!-- documentation -->
    33         <antcall target="prepare-documentation" />
    3429
    3530    </target>
    3631
    37     <target name="checkout-greenstone3">
     32    <target name="insert-imagemagick-linux-binaries">
     33        <delete dir="compiled/bin/linux/imagemagick"/>
    3834        <svn>
    39             <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="compiled"/>
     35            <export srcurl="${svn.root}/other-projects/trunk/linux-binaries/imagemagick" destPath="compiled/gs2build/bin/linux/imagemagick"/>
    4036        </svn>
    4137    </target>
     38
     39
     40<!--
     41    <target name="ant-prepare">
     42        <ant target="prepare" dir="compiled" inheritAll="false">
     43            <propertyset refid="forward.properties"/>
     44        </ant>
     45    </target>
     46
     47    <target name="ant-install">
     48        <ant target="install" dir="compiled" inheritAll="false">
     49            <propertyset refid="forward.properties"/>
     50        </ant>
     51    </target>
     52
     53    <target name="ant-dist-tidy">
     54        <ant target="dist-tidy" dir="compiled" inheritAll="false">
     55            <propertyset refid="forward.properties"/>
     56        </ant>
     57    </target>
     58-->
    4259
    4360    <target name="tweak-configure-scripts">
     
    6885    </target>
    6986
    70     <target name="prepare-documentation">
    71         <mkdir dir="compiled/gsdl-manuals"/>
    72         <svn>
    73             <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="compiled/gsdl-manuals/manuals"/>
    74             <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="compiled/gsdl-manuals/shared"/>
    75         </svn>
    76         <javac srcdir="compiled/gsdl-manuals/shared"
    77               destdir="compiled/gsdl-manuals/shared"
    78               debug="on">
    79             <include name="*.java"/>
    80         </javac>
    81         <unzip src="compiled/gsdl-manuals/shared/fop.zip" dest="compiled/gsdl-manuals/shared"/>
    82 
    83         <path id="documentation.compile.classpath">
    84             <fileset dir="compiled/gsdl-manuals">
    85                 <include name="**/*.jar"/>
    86             </fileset>
    87             <pathelement path="compiled/gsdl-manuals/shared"/>
    88             <pathelement path="compiled/gsdl-manuals/manuals"/>
    89         </path>
    90 
    91         <java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output="compiled/gsdl-manuals/manuals/xml-source/en/help-en.xml">
    92             <arg value="compiled/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />
    93             <arg value="compiled/gli/help/en/help.xml" />
    94             <arg value="compiled" />
    95         </java>
    96 
    97         <chmod perm="a+x" file="compiled/gsdl-manuals/shared/fop/fop.sh"/>
    98         <echo>Run generate-pdf.sh</echo>
    99         <exec dir="compiled/gsdl-manuals/manuals" executable="/bin/sh">
    100             <arg line="generate-pdf.sh u en" />
    101         </exec>
    102     </target>
    10387
    10488    <!--
     
    124108    <target name="gs2build-add-static">
    125109        <rsr file="compiled/gs2build/common-src/packages/configure" pattern="^ENVIRONMENT=&quot;&quot;$" replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
    126         <rsr file="compiled/gs2build/build-src/packages/configure"  pattern="^ENVIRONMENT=&quot;&quot;$" replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
     110        <rsr file="compiled/gs2build/build-src/packages/configure" pattern="^ENVIRONMENT=&quot;&quot;$" replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
    127111        <rsr file="compiled/gs2build/configure.in" pattern="^LDFLAGS=.*" replacement="LDFLAGS=-static" />
    128112    </target>
Note: See TracChangeset for help on using the changeset viewer.