Changeset 19843


Ignore:
Timestamp:
2009-06-15T16:11:08+12:00 (15 years ago)
Author:
kjdon
Message:

first stab at updating build.xml to get rid of gdbm specific targets and just generally tidy it up. I am halfway through, and java on my machine is not working properly so haven't tested this :-( But Oran said I could commit :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/build.xml

    r19649 r19843  
    6161  <property name="gs2build.home" value="${basedir}/gs2build"/>
    6262  <property name="src.packages.home" value="${basedir}/src/packages"/>
     63  <!-- get rid of one of these -->
    6364  <property name="gdbm.home" value="${gs2build.home}/common-src/packages/gdbm"/>
     65  <property name="gdbm.installed.path" value="${gs2build.home}/common-src/packages/gdbm"/> 
    6466  <property name="flax.svn.root" value="http://svn.greenstone.org/flax"/>
    6567  <property file="build.properties"/>
     
    7678  <property name="axis.zip.version" value="axis-bin-1_2_1.zip"/>
    7779  <property name="axis.dir.version" value="axis-1_2_1"/>
    78   <property name="gdbm.version" value="gdbm-1.8.3"/>
     80<!--  <property name="gdbm.version" value="gdbm-1.8.3"/>-->
    7981  <property name="sqlite.targz.version" value="sqlite-amalgamation-3.5.9.tar.gz"/>
    8082
     
    191193  <property name="javagdbm.home" value="${src.packages.home}/javagdbm"/>
    192194 
    193   <!--<property name="indexers.home" value="${basedir}/src/packages/indexers">-->
    194195  <condition property="indexers.home" value="${basedir}/src/packages/indexers">
    195196    <isset property="disable.collection.building"/>
     
    305306  <!-- add comments about using xxx-core, xxx-packages if only want certain parts?? -->
    306307
    307   <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-web,prepare-collections,prepare-gdbm, prepare-flax"
     308  <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-collection-building,prepare-tomcat,prepare-axis,prepare-web,prepare-collections, prepare-flax"
    308309    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.">
    309     <!--  <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-web,prepare-collections"
    310     description="Use this when you first checkout the code: 'ant prepare install'. This will do some additional cvs checkouts and downloads, so you need to be online to run this.">-->
    311310
    312311    <!-- make sure .sh files are executable -->
     
    317316  </target>
    318317
     318  <target name="new-install" depends="init,install-collection-building,install-runtime"
     319    description="Install Greenstone 3. Use this when you first checkout the code: 'ant prepare new-install'."/>
     320
     321  <target name="install-collection-building" depends="init,configure-collection-building,compile-collection-building"/>
     322  <target name="install-runtime" depends="init,configure,configure-packages,configure-core,compile-web,compile-packages,compile-core"/>
     323 
     324   
    319325  <target name="install" depends="init,install-indexer-files,configure,configure-c++,compile"
    320326    description="Install Greenstone 3. Use this when you first checkout the code: 'ant prepare install'."/>
    321327 
    322   <!--  <target name="cvsupdate" depends="init,cvsupdate-packages,cvsupdate-core,cvsupdate-gs2building,cvsupdate-web"
    323   description="Do a cvs update for all sources. Doesn't recompile the code. You need to be online to run this."/>-->
    324   <target name="svnupdate" depends="init,svnupdate-packages,svnupdate-core,svnupdate-gs2building,svnupdate-web"
     328  <target name="svnupdate" depends="init,svnupdate-packages,svnupdate-core,svnupdate-collection-building,svnupdate-web"
    325329    description="Do a `svn update` for all sources. Doesn't recompile the code. You need to be online to run this."/>
    326330
    327   <target name="configure-c++" depends="init,configure-packages,configure-core,configure-gs2building"
    328     description="Configure any C/C+/+ package code and gs2building code if necessary"/>
     331  <target name="configure-c++" depends="init,configure-packages,configure-core,configure-collection-building"
     332    description="Configure any C/C+/+ package code and collection-building code if necessary"/>
    329333 
    330334  <target name="configure" depends="init,configure-tomcat,configure-web"
    331335    description="Configure the installation. Includes setting up config files. Should be re-run if you change the build.properties file."/>
    332336
    333   <target name="clean" depends="init,clean-packages,clean-core,clean-gs2building,clean-gdbm"
    334     description="Remove all old compiled code. Includes core, packages and gs2building if necessary"/>
    335  
    336   <target name="distclean" depends="init,distclean-packages,clean-core,distclean-gs2building,distclean-gdbm"
    337     description="Remove all compiled code and also any Makefiles etc generated during configure-c++. Includes core, packages, gs2building as necessary"/>
    338  
    339   <target name="compile" depends="init,compile-web,compile-packages,compile-core,compile-gs2building"
    340     description="Compile all the source code, includes core, packages and gs2building if necessary. Copy jar files and executables to their correct places."/>
     337  <target name="clean" depends="init,clean-packages,clean-core,clean-collection-building"
     338    description="Remove all old compiled code. Includes core, packages and collection-building if necessary"/>
     339 
     340  <target name="distclean" depends="init,distclean-packages,clean-core,distclean-collection-building"
     341    description="Remove all compiled code and also any Makefiles etc generated during configure-c++. Includes core, packages, collection-building as necessary"/>
     342 
     343  <target name="compile" depends="init,compile-web,compile-packages,compile-core,compile-collection-building"
     344    description="Compile all the source code, includes core, packages and collection-building if necessary. Copy jar files and executables to their correct places."/>
    341345 
    342346  <target name="update" depends="init,svnupdate,clean,configure,configure-c++,compile"
    343     description="Update (thru Subversion) all the source (including core, packages and gs2building), then clean, configure and recompile. To do this without any SVN updates, run it like 'ant -Dnosvn.mode=yes update'"/>
     347    description="Update (thru Subversion) all the source (including core, packages and collection-building), then clean, configure and recompile. To do this without any SVN updates, run it like 'ant -Dnosvn.mode=yes update'"/>
    344348
    345349  <target name="start" depends="init,start-tomcat"
     
    746750      <env key="CLASSPATH" path="${tomcat.classpath}"/>
    747751      <env key="LD_LIBRARY_PATH" path="${env.LD_LIBRARY_PATH}:${lib.jni}"/>
    748       <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${lib.jni}:${gdbm.installed.path}/lib"/> <!-- for mac os -->
     752      <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${lib.jni}:${gdbm.installed.path}/lib"/> <!-- for mac os --> <!-- need gdbm here??-->
    749753      <env key="WNHOME" path="${wn.home}"/>
    750754    </exec>
     
    11441148    description="Configure only the packages."/>
    11451149 
    1146   <target name="configure-javagdbm" depends="configure-gdbm,compile-gdbm">
     1150 <!-- <target name="configure-javagdbm" depends="configure-gdbm,compile-gdbm">-->
     1151  <target name="configure-javagdbm">
    11471152    <echo>
    11481153      Configuring JavaGDBM
     
    13041309  </target>
    13051310 
    1306   <!-- ================== gs2building targets ===============-->
    1307 
    1308 
    1309   <target name="update-gs2building" if="collection.building.enabled"
    1310     depends="init,svnupdate-gs2building,rename-gs2build-files,configure-gs2building,clean-gs2building,compile-gs2building"
    1311     description="Update only the Greenstone 2 building components"/>
    1312 
    1313   <target name="svnupdate-gs2building" if="collection.building.enabled" depends="init,svnupdate-gs2build,svnupdate-gli" unless="nosvn.mode">
    1314   </target>
    1315 
    1316   <target name="svnupdate-gs2build" if="collection.building.enabled" depends="init" unless="nosvn.mode">
    1317     <!-- please keep this function in sync with checkout-gs2build -->
    1318 
    1319     <echo>updating gs2build</echo>
    1320     <!-- svn updates -->
    1321     <svn>
    1322 
    1323       <!-- some files from cgi-bin: necessary for remote GLI server
    1324       <export srcUrl="${svn.root}/gsdl/${branch.path}/cgi-bin/gsdlCGI.pm" destPath="${web.home}/WEB-INF/cgi/gsdlCGI.pm" revision="${branch.revision}"/>
    1325       <export srcUrl="${svn.root}/gsdl/${branch.path}/cgi-bin/gliserver.pl" destPath="${web.home}/WEB-INF/cgi/gliserver.pl" revision="${branch.revision}"/>
    1326       -->
    1327        
    1328       <!-- perllib -->
    1329       <update dir="gs2build" revision="${branch.revision}"/>
    1330     </svn>
    1331   </target>
    1332  
     1311  <!-- ======= collection-building targets ===========================-->
     1312
     1313  <target name="update-collection-building" if="collection.building.enabled"
     1314    depends="init,svnupdate-collection-building,rename-gs2build-files,configure-collection-building,clean-collection-building,compile-collection-building"
     1315    description="Update (SVN update, configure, compile etc) only the collection building components"/>
     1316
     1317  <target name="svnupdate-collection-building" if="collection.building.enabled" depends="init,svnupdate-gs2build,svnupdate-gli" unless="nosvn.mode"
     1318    description="SVN update the collection building components">
     1319  </target>
     1320
     1321  <target name="prepare-collection-building" depends="init,prepare-gs2build,prepare-gli" if="collection.building.enabled">
     1322  </target>
     1323
     1324  <target name="configure-collection-building" depends="init" if="collection.building.enabled"
     1325    description="Configure only the collection building components">
     1326    <exec executable="${gs2build.home}/configure" os="${os.unix}"
     1327      dir="${gs2build.home}">
     1328      <arg value="--prefix=${gs2build.home}"/>
     1329    </exec>
     1330  </target>
     1331
     1332  <target name="clean-collection-building" depends="init,clean-gli,clean-gs2build"
     1333    description="Clean only the collection building components"
     1334    if="collection.building.enabled"/>
     1335
     1336  <target name="distclean-collection-building" depends="init,clean-gli,clean-gs2build,distclean-gs2build"
     1337    description="Distclean only the collection building components"
     1338    if="collection.building.enabled"/>
     1339
     1340  <target name="compile-collection-building" depends="init,compile-gs2build,compile-gli" if="collection.building.enabled"
     1341    description="Compile only the collection building components">
     1342  </target>
     1343
     1344  <!-- ============== gli targets ================================= -->
     1345
    13331346  <target name="svnupdate-gli" if="collection.building.enabled" depends="init" unless="nosvn.mode">
    13341347    <svn>
     
    13371350  </target>
    13381351
    1339   <target name="prepare-gs2building" depends="init,prepare-gs2build,prepare-gli" if="collection.building.enabled">
    1340   </target>
    1341   <target name="checkout-gs2build" depends="init" if="collection.building.enabled" unless="nosvn.mode">
    1342     <!-- please keep this function in sync with update-gs2build -->
    1343     <echo>checking out gs2build</echo>
    1344 
    1345     <!-- this has to be created first to avoid errors when trying to export to it later -->
    1346     <mkdir dir="${basedir}/gs2build/src/lib"/>
    1347 
    1348     <!-- svn checkouts -->
     1352  <target name="prepare-gli" depends="init" if="collection.building.enabled" unless="gli.present">
     1353    <antcall target="checkout-gli"/>
     1354  </target>
     1355 
     1356  <target name="checkout-gli" depends="init" if="collection.building.enabled" unless="nosvn.mode">
     1357    <echo>checking out gli</echo>
    13491358    <svn>
    1350       <!-- some files from cgi-bin: necessary for remote GLI server
    1351       <export srcUrl="${svn.root}/gsdl/${branch.path}/cgi-bin/gliserver.pl" destPath="${web.home}/WEB-INF/cgi/gliserver.pl" revision="${branch.revision}"/>
    1352       <export srcUrl="${svn.root}/gsdl/${branch.path}/cgi-bin/gsdlCGI.pm" destPath="${web.home}/WEB-INF/cgi/gsdlCGI.pm" revision="${branch.revision}"/>
    1353       -->
    1354 
    1355       <!-- perllib -->
    1356       <checkout url="${svn.root}/gs2build" destPath="gs2build" revision="${branch.revision}"/>
     1359      <checkout url="${svn.root}/gli/${branch.path}" destPath="gli" revision="${branch.revision}"/>
    13571360    </svn>
    13581361  </target>
    1359 
     1362 
     1363 
     1364  <target name="clean-gli" depends="init" if="collection.building.enabled">
     1365    <!-- gli -->
     1366    <property name="gli.home" value="${basedir}/gli"/>
     1367    <!-- linux -->
     1368    <exec executable="clean.sh" os="${os.unix}" dir="${gli.home}"
     1369      resolveExecutable="true"/>
     1370    <!-- windows -->
     1371    <exec executable="clean.bat" os="${os.windows}" dir="${gli.home}"
     1372      resolveExecutable="true"/>
     1373  </target>
     1374 
     1375  <target name="compile-gli" depends="init" if="collection.building.enabled">
     1376    <!-- gli -->
     1377    <property name="gli.home" value="${basedir}/gli"/>
     1378
     1379    <!-- linux -->
     1380    <exec executable="makegli.sh" os="${os.unix}" dir="${gli.home}" resolveExecutable="true"/>
     1381    <!--remote gli-->
     1382    <exec executable="makejar.sh" os="${os.unix}" dir="${gli.home}"
     1383      resolveExecutable="true"/>
     1384    <!-- windows -->
     1385    <exec executable="makegli.bat" os="${os.windows}" dir="${gli.home}" resolveExecutable="true"/>
     1386    <!--remote gli-->
     1387    <exec executable="makejar.bat" os="${os.windows}" dir="${gli.home}"
     1388      resolveExecutable="true"/>
     1389    <copy file="${gli.home}/GLIServer.jar" todir="${gs2build.home}/bin/java" />
     1390  </target>
     1391
     1392  <target name="gli" description="Run the Greenstone Librarian Interface" depends="init" if="collection.building.enabled">
     1393    <exec executable="${basedir}/gli/gli.sh" os="${os.linux},${os.solaris}" dir="${basedir}/gli" spawn="true">
     1394      <env key="gsdl3path" path="${basedir}"/>
     1395      <env key="gsdlpath" path="${basedir}/gs2build"/>
     1396    </exec>
     1397    <exec executable="${basedir}/gli/gli.sh" os="${os.mac}" dir="${basedir}/gli" spawn="true">
     1398      <env key="gsdl3path" path="${basedir}"/>
     1399      <env key="gsdlpath" path="${basedir}/gs2build"/>
     1400      <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${gdbm.installed.path}/lib"/>
     1401    </exec>
     1402    <exec executable="${basedir}/gli/gli.bat" os="${os.windows}" dir="${basedir}/gli" spawn="true">
     1403      <env key="GSDL3PATH" path="${basedir}"/>
     1404      <env key="GSDLPATH" path="${basedir}/gs2build"/>
     1405    </exec>
     1406    <echo>Running GLI from Ant means that you don't get to see any of the terminal output. If you have problems with GLI and want to see the output, please run the script gli.sh/bat from the greenstone3/gli directory.
     1407    </echo>
     1408  </target>
     1409
     1410  <!-- ================ gs2build targets =========================== -->
     1411
     1412  <target name="svnupdate-gs2build" if="collection.building.enabled" depends="init" unless="nosvn.mode">
     1413    <echo>svn updating gs2build</echo>
     1414    <svn>
     1415      <update dir="{gs2build.home}" revision="${branch.revision}"/>
     1416    </svn>
     1417  </target>
     1418   
    13601419  <target name="prepare-gs2build" depends="init" if="collection.building.enabled" unless="gs2build.present">
    13611420    <antcall target="checkout-gs2build"/>
     
    13671426  </target>
    13681427
     1428  <target name="checkout-gs2build" depends="init" if="collection.building.enabled" unless="nosvn.mode">
     1429    <echo>checking out gs2build</echo>
     1430    <svn>
     1431      <checkout url="${svn.root}/gs2build" destPath="gs2build" revision="${branch.revision}"/>
     1432    </svn>
     1433  </target>
     1434
    13691435  <target name="checkout-winbin" depends="init" if="current.os.iswindows"
    13701436    unless="nosvn.mode">
     
    13851451    </move>
    13861452  </target>
     1453
    13871454  <target name="delete-winbin" depends="init" if="collection.building.enabled.windows">
    13881455    <delete dir="${basedir}/winbin"/>
     
    13901457 
    13911458  <target name="unzip-windows-packages" depends="init" if="collection.building.enabled.windows"> 
    1392     <!--<unzip src="${gs2build.home}/common-src/packages/windows/gdbm/gdbm.zip"
    1393       dest="${gs2build.home}/common-src/packages/windows/gdbm"/>-->
    13941459    <unzip src="${gs2build.home}/common-src/packages/windows/crypt/crypt.zip"
    13951460      dest="${gs2build.home}/common-src/packages/windows/crypt"/>
     
    14101475      usetimestamp="true"/>
    14111476      -->
    1412     <echo>Nothing extra currently needed for MacOs prepare</echo>
     1477    <echo>Nothing extra currently needed for MacOS prepare</echo>
    14131478  </target>
    14141479
     
    14511516  </target>
    14521517 
    1453   <target name="prepare-gli" depends="init" if="collection.building.enabled" unless="gli.present">
    1454     <antcall target="checkout-gli"/>
    1455   </target>
    1456  
    1457   <target name="checkout-gli" depends="init" if="collection.building.enabled" unless="nosvn.mode">
    1458     <echo>checking out gli</echo>
    1459     <svn>
    1460       <checkout url="${svn.root}/gli/${branch.path}" destPath="gli" revision="${branch.revision}"/>
    1461     </svn>
    1462   </target>
    1463  
    1464   <target name="configure-gs2building" depends="init" if="collection.building.enabled"
    1465     description="Configure only the Greenstone 2 building components">
    1466     <exec executable="${gs2build.home}/configure" os="${os.linux},${os.solaris}"
    1467       dir="${gs2build.home}">
    1468       <arg value="--prefix=${gs2build.home}"/>
    1469       <arg value="--with-gdbm=${gdbm.installed.path}"/>
    1470     </exec>
    1471     <exec executable="${gs2build.home}/configure" os="${os.mac}"
    1472       dir="${gs2build.home}">
    1473       <arg value="--prefix=${gs2build.home}"/>
    1474       <arg value="--with-gdbm=${gdbm.installed.path}"/>
    1475     </exec>
    1476   </target>
    1477 
    1478   <target name="clean-gs2building" depends="init,clean-gli,clean-gs2build"
    1479     description="Clean only the Greenstone 2 building components"
    1480     if="collection.building.enabled"/>
    1481  
    1482   <target name="clean-gli" depends="init" if="collection.building.enabled">
    1483     <!-- gli -->
    1484     <property name="gli.home" value="${basedir}/gli"/>
    1485     <!-- linux -->
    1486     <exec executable="clean.sh" os="${os.unix}" dir="${gli.home}"
    1487       resolveExecutable="true"/>
    1488     <!-- windows -->
    1489     <exec executable="clean.bat" os="${os.windows}" dir="${gli.home}"
    1490       resolveExecutable="true"/>
    1491   </target>
    1492  
     1518 
    14931519  <target name="clean-gs2build" depends="init" if="collection.building.enabled">
    14941520    <!-- gs2build -->
     
    15081534  </target>
    15091535 
    1510   <target name="distclean-gs2building" depends="init,clean-gli,clean-gs2build,distclean-gs2build"
    1511     description="Distclean only the Greenstone 2 building components"
    1512     if="collection.building.enabled"/>
    15131536
    15141537  <target name="distclean-gs2build" depends="init" if="collection.building.enabled">
     
    15171540    </exec>
    15181541  </target>
    1519  
    1520   <target name="compile-gs2building" depends="init,compile-gs2build,compile-gli" if="collection.building.enabled"
    1521     description="Compile only the Greenstone 2 building components">
    1522   </target>
    1523  
    1524   <target name="compile-gli" depends="init" if="collection.building.enabled">
    1525     <!-- gli -->
    1526     <property name="gli.home" value="${basedir}/gli"/>
    1527 
    1528     <!-- linux -->
    1529     <exec executable="makegli.sh" os="${os.unix}" dir="${gli.home}" resolveExecutable="true"/>
    1530     <!--remote gli-->
    1531     <exec executable="makejar.sh" os="${os.unix}" dir="${gli.home}"
    1532       resolveExecutable="true"/>
    1533     <!-- windows -->
    1534     <exec executable="makegli.bat" os="${os.windows}" dir="${gli.home}" resolveExecutable="true"/>
    1535     <!--remote gli-->
    1536     <exec executable="makejar.bat" os="${os.windows}" dir="${gli.home}"
    1537       resolveExecutable="true"/>
    1538     <copy file="${gli.home}/GLIServer.jar" todir="${gs2build.home}/bin/java" />
    1539   </target>
    1540  
     1542 
    15411543  <target name="compile-gs2build" depends="init" if="collection.building.enabled">
    15421544    <!-- gs2build -->
     
    15741576  </target>
    15751577
    1576   <target name="gli" description="Run the Greenstone Librarian Interface" depends="init" if="collection.building.enabled">
    1577     <exec executable="${basedir}/gli/gli4gs3.sh" os="${os.linux},${os.solaris}" dir="${basedir}/gli" spawn="true">
    1578       <env key="gsdl3path" path="${basedir}"/>
    1579       <env key="gsdlpath" path="${basedir}/gs2build"/>
    1580     </exec>
    1581     <exec executable="${basedir}/gli/gli4gs3.sh" os="${os.mac}" dir="${basedir}/gli" spawn="true">
    1582       <env key="gsdl3path" path="${basedir}"/>
    1583       <env key="gsdlpath" path="${basedir}/gs2build"/>
    1584       <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${gdbm.installed.path}/lib"/>
    1585     </exec>
    1586     <exec executable="${basedir}/gli/gli4gs3.bat" os="${os.windows}" dir="${basedir}/gli" spawn="true">
    1587       <env key="GSDL3PATH" path="${basedir}"/>
    1588       <env key="GSDLPATH" path="${basedir}/gs2build"/>
    1589     </exec>
    1590     <echo>Running GLI from Ant means that you don't get to see any of the terminal output. If you have problems with GLI and want to see the output, please run the script gli4gs3.sh/bat from the greenstone3/gli directory.
    1591     </echo>
    1592   </target>
    15931578 
    15941579
     
    16851670
    16861671
    1687   <!-- ======================== GDBM Targets ========================= -->
    1688 
    1689   <target name="prepare-gdbm" depends="init" if="install.gdbm">
    1690   </target> 
    1691 
    1692   <!-- Deprecated because we're using a customised gdbm inside common-src now -->
    1693   <target name="prepare-gdbm-deprecated" depends="init" if="install.gdbm">
    1694     <if>
    1695       <bool>
    1696         <not><available file="${src.packages.home}/${gdbm.version}/.flagfile"/></not>
    1697       </bool>
    1698 
    1699       <get src="http://www.greenstone.org/gs3files/${gdbm.version}.tar.gz"
    1700         dest="${src.packages.home}/${gdbm.version}.tar.gz" usetimestamp="true"/>
    1701       <untar compression= "gzip" src="${src.packages.home}/${gdbm.version}.tar.gz" dest="${src.packages.home}" />
    1702       <echo file="${src.packages.home}/${gdbm.version}/.flagfile">
    1703         the timestamp of this file is the time that gdbm was extracted from the tar files.
    1704         it is used to figure out whether the files need to be refreshed or not in `ant prepare-gdbm`
    1705       </echo>
    1706       <chmod dir="${src.packages.home}/${gdbm.version}" perm="ugo+wrx" includes="**" />
    1707       <antcall target="configure-gdbm" />
    1708       <antcall target="compile-gdbm" />
    1709 
    1710      <else>
    1711        <echo>GDBM has been prepared, will not prepare</echo>
    1712        <echo>Delete ${src.packages.home}/${gdbm.version}/.flagfile to force a fresh prepare</echo>
    1713      </else>
    1714 
    1715     </if>
    1716   </target> 
    1717 
    1718   <target name="configure-gdbm" if="install.gdbm">
    1719     <echo>
    1720       Configuring GDBM
    1721     </echo>
    1722     <exec executable="${gdbm.home}/${gdbm.version}/configure" os="${os.unix}"
    1723       dir="${gdbm.home}/${gdbm.version}">
    1724       <arg value="--disable-shared"/>
    1725       <arg value="--prefix=${gdbm.home}"/>
    1726     </exec>   
    1727   </target>
    1728 
    1729   <target name="clean-gdbm" depends="init"  if="install.gdbm">   
    1730     <echo>clean GDBM</echo>
    1731     <exec executable="make" os="${os.unix}" dir="${gdbm.home}/${gdbm.version}" >
    1732       <arg value="clean"/>
    1733     </exec>
    1734   </target>
    1735 
    1736 
    1737   <target name="distclean-gdbm" depends="init"  if="install.gdbm">   
    1738     <echo>distclean GDBM</echo>
    1739     <exec executable="make" os="${os.unix}" dir="${gdbm.home}/${gdbm.version}" >
    1740       <arg value="distclean"/>
    1741     </exec>
    1742   </target>
    1743 
    1744   <target name="compile-gdbm" depends="init"  if="install.gdbm">   
    1745     <echo>compile GDBM</echo>
    1746     <exec executable="groups" os="${os.unix}" outputproperty="usergroups"/>
    1747     <exec executable="awk" os="${os.unix}" inputstring="${usergroups}" outputproperty="firstgroup">
    1748       <arg line="'{print $1}'"/>
    1749     </exec>
    1750 
    1751     <exec executable="make" os="${os.unix}" dir="${gdbm.home}/${gdbm.version}"/>
    1752     <exec executable="make" os="${os.unix}" dir="${gdbm.home}/${gdbm.version}">
    1753       <arg value="BINOWN=${env.USER}"/>
    1754       <arg value="BINGRP=${firstgroup}"/>
    1755       <arg value="install"/>
    1756     </exec>
    1757   </target>
     1672
    17581673
    17591674  <target name="compile-javadocs">
Note: See TracChangeset for help on using the changeset viewer.