Changeset 15038


Ignore:
Timestamp:
2008-03-04T14:12:42+13:00 (14 years ago)
Author:
shaoqun
Message:

add prepare, configure, compile stuff for gdbm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/build.xml

    r15037 r15038  
    167167  <property name="gli.home" value="${basedir}/gli"/>
    168168  <property name="javagdbm.home" value="${src.packages.home}/javagdbm"/>
     169  <property name="gdbm.home" value="${src.packages.home}/gdbm-1.8.3"/>
    169170
    170171  <!--<property name="indexers.home" value="${basedir}/src/packages/indexers">-->
     
    278279  <!-- add comments about using xxx-core, xxx-packages if only want certain parts?? -->
    279280
    280   <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-web,prepare-collections"
     281  <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-web,prepare-collections,prepare-gdbm"
    281282    description="Use this when you first checkout the code: 'ant prepare install'. This will do some additional subversion checkouts and downloads, so you need to be online to run this.">
    282283<!--  <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-web,prepare-collections"
     
    304305    description="Configure the installation. Includes setting up config files. Should be re-run if you change the build.properties file."/>
    305306
    306   <target name="clean" depends="init,clean-packages,clean-core,clean-gs2building"
     307  <target name="clean" depends="init,clean-gdbm,clean-packages,clean-core,clean-gs2building"
    307308    description="Remove all old compiled code. Includes core, packages and gs2building if necessary"/>
    308309 
     
    923924  </target>
    924925 
    925   <target name="configure-packages" depends="init,configure-javagdbm,configure-indexers"
     926  <target name="configure-packages" depends="init,configure-gdbm,configure-javagdbm,configure-indexers"
    926927    description="Configure only the packages."/>
    927928 
     
    978979   
    979980    <target name="compile-packages" description="Compile only the source packages">
     981         
     982                <!-- gdbm -->
     983                <antcall target="compile-gdbm" />
    980984
    981985        <!-- javagdbm -->
     
    14711475      <copy file="${basedir}/web/WEB-INF/classes/flax/server-config.wsdd" todir="${basedir}/web/WEB-INF" overwrite="true" />
    14721476    </target>
     1477      <!--install gdbm stuff -->
     1478
     1479  <!-- downloads the gdbm library -->
     1480  <target name="prepare-gdbm" depends="init" if="install.gdbm">
     1481      <get src="http://www.greenstone.org/gs3files/gdbm-1.8.3.tar.gz"
     1482       dest="${src.packages.home}/gdbm-1.8.3.tar.gz"  usetimestamp="true"/>
     1483      <untar compression= "gzip" src="${src.packages.home}/gdbm-1.8.3.tar.gz" dest="${src.packages.home}" /> 
     1484      <chmod dir="${src.packages.home}/gdbm-1.8.3" perm="ugo+wrx" includes="**" />
     1485  </target> 
     1486
     1487   <target name="configure-gdbm" if="install.gdbm">
     1488    <echo>
     1489      Configuring GDBM
     1490    </echo>
     1491    <exec executable="${gdbm.home}/configure" os="${os.mac},${os.unix}"
     1492      dir="${gdbm.home}">
     1493      <arg value="--prefix=${gdbm.home}"/>
     1494    </exec>   
     1495   </target>
     1496
     1497 <target name="clean-gdbm" depends="init"  if="install.gdbm">   
     1498    <echo>clean GDBM</echo>
     1499    <exec executable="make" os="${os.unix},${os.mac}" dir="${gdbm.home}" >
     1500     <arg value="clean"/>
     1501    </exec>
     1502  </target>
     1503
     1504  <target name="compile-gdbm" depends="init"  if="install.gdbm">   
     1505    <echo>compile GDBM</echo>
     1506    <exec executable="make" os="${os.unix},${os.mac}" dir="${gdbm.home}"/>
     1507    <exec executable="make" os="${os.unix},${os.mac}" dir="${gdbm.home}">
     1508      <arg value="install"/>
     1509    </exec>
     1510  </target>
     1511
     1512
     1513
    14731514</project>
    14741515
Note: See TracChangeset for help on using the changeset viewer.