Ignore:
Timestamp:
2008-08-06T15:07:41+12:00 (16 years ago)
Author:
oranfry
Message:

got mark3 working

Location:
release-kits/mark3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • release-kits/mark3

    • Property svn:externals
      •  

        old new  
        22linux http://svn.greenstone.org/release-kits/shared/linux
        33greenstone3 http://svn.greenstone.org/release-kits/shared/greenstone3
         4mac http://svn.greenstone.org/release-kits/shared/mac
        45
  • release-kits/mark3/ant-scripts/compile.xml

    r16172 r16655  
    11<?xml version="1.0" encoding="utf-8" ?>
    2 <project name="lirk3-compile" default="compile">
     2<project name="mark3-compile" default="compile">
    33
    44
     
    1010        <!-- preparation -->
    1111        <addressedcall target="set-version-number-property" />
     12        <addressedcall target="set-gdbm-installed-path" />
    1213        <addressedcall target="dist-prepare-unix" />
    13         <addressedcall target="tweak-configure-scripts" />
    1414
    1515        <!-- update -->
     
    2222        <!-- build -->
    2323        <addressedcall target="dist-build-unix" />
    24         <addressedcall target="fix-wget" />
    2524        <addressedcall target="linux-strip-execs" />
    2625
     
    4140        <if><bool><istrue value="${execute}"/></bool>
    4241            <rsr file="greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" />
     42
    4343        </if>
    4444    </target>
    4545
     46    <target name="set-gdbm-installed-path">
     47        <if><bool><istrue value="${execute}"/></bool>
     48            <rsr file="greenstone3/build.properties" pattern="(gdbm.installed.path=).*" replacement="$1${mark3.home}/mac/${processor}/gdbm"/>
     49        </if>
     50    </target>
     51
     52
     53
     54
    4655    <target name="dist-prepare-unix">
    4756        <if><bool><istrue value="${execute}"/></bool>
    48             <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-unix"  inheritAll="false"/>
     57            <ant dir="greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-unix"  inheritAll="false"/>
    4958        </if>   
    50     </target>
    51     <target name="tweak-configure-scripts">
    52         <addressedcall target="mgpp-add-static" />
    53         <addressedcall target="mg-add-static" />
    54         <addressedcall target="gs2buildextra-add-static" />
    5559    </target>
    5660
    5761    <target name="dist-update-unix">
    5862        <if><bool><istrue value="${execute}"/></bool>
    59             <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="update-unix"  inheritAll="false"/>
     63            <ant dir="greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" target="update-unix"  inheritAll="false"/>
    6064        </if>
    6165    </target>
     
    6367    <target name="dist-configure-unix">
    6468        <if><bool><istrue value="${execute}"/></bool>
    65             <exec dir="greenstone3/gs2build/gs2build-extra" executable="autoconf" output="greenstone3/gs2build/configure">
    66                 <arg line="configure.in"/>
    67             </exec>
    68             <chmod file="greenstone3/gs2build/configure" perm="+x"/>
    69             <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="configure-unix" inheritAll="false"/>
     69            <ant dir="greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" target="configure-unix" inheritAll="false"/>
    7070        </if>
    7171    </target>
    7272
    73     <target name="tweak-makefiles">
    74         <addressedcall target="wv-add-static" />
    75         <addressedcall target="xlhtml-add-static" />
    76         <addressedcall target="ppthtml-add-static" />
    77         <addressedcall target="rtftohtml-add-static" />
    78         <addressedcall target="gdbm-add-static" />
    79     </target>
     73        <target name="tweak-makefiles">
     74                <if><bool><istrue value="${execute}"/></bool>
     75               <rsr
     76                file="${basedir}/greenstone3/gs2build/common-src/src/gdbmedit/db2txt/Makefile"
     77                pattern="^(LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$"
     78                replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
     79
     80                <rsr
     81                file="${basedir}/greenstone3/gs2build/common-src/src/gdbmedit/txt2db/Makefile"
     82                pattern="^(LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$"
     83                replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
     84                <rsr
     85                file="${basedir}/greenstone3/src/packages/javagdbm/jni/Makefile"
     86                pattern="^(GDBM_LIBS ?=.*)-L${mark3.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$"
     87                replacement="$1${mark3.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
     88
     89               </if>
     90        </target>
    8091
    8192    <target name="dist-build-unix">
    8293        <if><bool><istrue value="${execute}"/></bool>
    83             <ant dir="greenstone3" antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-unix" inheritAll="false"/>
    84         </if>
    85     </target>
    86 
    87     <target name="fix-wget">
    88         <if><bool><istrue value="${execute}"/></bool>
    89             <!-- fix this !!! -->
    90           <delete file="greenstone3/gs2build/packages/wget/wget-1.9/src/wget"/>
     94            <ant dir="greenstone3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" target="build-unix" inheritAll="false"/>
    9195        </if>
    9296    </target>
     
    9498    <target name="linux-strip-execs">
    9599        <if><bool><istrue value="${execute}"/></bool>
    96             <exec dir="greenstone3/gs2build/bin/linux" executable="find">
    97                 <arg line="! -name . -exec strip {} &#59;"/>
     100            <exec dir="greenstone3/gs2build/bin/darwin" executable="find">
     101                <arg line=". ! -name . -exec strip {} &#59;"/>
    98102            </exec>
    99103        </if>
     
    191195    </target>
    192196
     197</project>
    193198
    194 
    195 </project>
Note: See TracChangeset for help on using the changeset viewer.