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/lirk3/ant-scripts/compile.xml

    r19935 r19936  
    33
    44    <target name="compile">
    5 
    65        <antcall target="checkout-greenstone3" />
    76        <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="compiled"/></antcall>
     
    1918        <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
    2019        <antcall target="prepare-documentation"/> <!-- from rk3-targets -->
    21 
    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         -->
    28 
    29 
    3020    </target>
    3121
     
    3727    </target>
    3828
    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 -->
    59 
    60     <target name="tweak-configure-scripts">
    61         <antcall target="mgpp-add-static" />
    62         <antcall target="mg-add-static" />
    63         <antcall target="gs2build-add-static" />
    64     </target>
    65 
    66     <target name="regenerate-configure">
    67         <exec dir="compiled/gs2build" executable="autoconf" output="compiled/gs2build/configure">
    68             <arg line="configure.in"/>
    69         </exec>
    70         <chmod file="compiled/gs2build/configure" perm="+x"/>
    71     </target>
    72 
    73     <target name="tweak-makefiles">
    74         <antcall target="wv-add-static" />
    75         <antcall target="xlhtml-add-static" />
    76         <antcall target="ppthtml-add-static" />
    77         <antcall target="rtftohtml-add-static" />
    78         <antcall target="gdbm-add-static" />
    79     </target>
    80 
    81     <target name="linux-strip-execs">
    82         <exec dir="compiled/gs2build/bin/linux" executable="find">
    83             <arg line="! -name . -exec strip {} &#59;"/>
    84         </exec>
    85     </target>
    86 
    87 
    88     <!--
    89 
    90         third level targets
    91 
    92     -->
    93 
    94     <target name="mgpp-add-static">
    95         <rsr file="compiled/gs2build/common-src/indexers/mgpp/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
    96         <exec dir="compiled/gs2build/common-src/indexers/mgpp" executable="autoconf" output="compiled/gs2build/common-src/indexers/mgpp/configure">
    97             <arg line="configure.in"/>
    98         </exec>
    99     </target>
    100 
    101     <target name="mg-add-static">
    102         <rsr file="compiled/gs2build/common-src/indexers/mg/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
    103         <exec dir="compiled/gs2build/common-src/indexers/mg" executable="autoconf" output="compiled/gs2build/common-src/indexers/mg/configure">
    104             <arg line="configure.in"/>
    105         </exec>
    106     </target>
    107 
    108     <target name="gs2build-add-static">
    109         <rsr file="compiled/gs2build/common-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;" />
    111         <rsr file="compiled/gs2build/configure.in" pattern="^LDFLAGS=.*" replacement="LDFLAGS=-static" />
    112     </target>
    113 
    114     <target name="wv-add-static">
    115         <rsr file="compiled/gs2build/build-src/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
    116     </target>
    117 
    118     <target name="xlhtml-add-static">
    119         <rsr file="compiled/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
    120     </target>
    121 
    122     <target name="ppthtml-add-static">
    123         <rsr file="compiled/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
    124     </target>
    125 
    126     <target name="rtftohtml-add-static">
    127         <rsr file="compiled/gs2build/build-src/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml(.{2})EXEEXT(.{1})" replacement="-o rtftohtml$1EXEEXT$2 -static" />
    128     </target>
    129 
    130     <target name="gdbm-add-static">
    131         <rsr file="compiled/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" />
    132     </target>
    133 
    134 
    13529</project>
Note: See TracChangeset for help on using the changeset viewer.