Changeset 15329 for greenstone3

Show
Ignore:
Timestamp:
01.05.2008 15:06:28 (12 years ago)
Author:
davidb
Message:

GDBM now always checked out by default and compiled. Simplies compiling under various Unix systems, in particular MacOs?

Location:
greenstone3/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/build.properties

    r15239 r15329  
    5151proxy.password= 
    5252 
    53 ## Mac OS X specific stuff 
    54 # set the path to your GDBM here 
    55 #install.gdbm=true 
    56 #gdbm.installed.path=${gdbm.home} 
     53# Not all unix systems (for example MacOS) come with GDBM pre-installed 
     54# To keep things simple, instruct Greenstone3 to download a GDBM tar file 
     55# configure and install it. The location used by default is within the 
     56# Greenstone3 src/packages area 
     57install.gdbm=true 
     58gdbm.installed.path=${gdbm.home} 
    5759 
    5860##Flax stuff## 
  • greenstone3/trunk/build.xml

    r15241 r15329  
    13321332  <!-- downloads a good XML-Parser --> 
    13331333  <target name="get-macos-extra" depends="init" if="need.macos.extra">   
     1334<!-- 
    13341335      <get src="http://www.greenstone.org/gs3files/XML-Parser.tar.gz" 
    13351336      dest="${gs2build.home}/perllib/cpan/XML-Parser.tar.gz" 
    13361337      usetimestamp="true"/> 
     1338--> 
     1339    <echo>Nothing extra currently needed for MacOs prepare</echo> 
    13371340  </target>   
    13381341 
     
    13411344    <!-- make sure these directories are present, otherwise chmod craps out  
    13421345    this chmod is needed in case we are unpacking for a second time --> 
     1346<!-- 
    13431347    <mkdir dir="${gs2build.home}/perllib/cpan/perl-5.8"/> 
    13441348    <mkdir dir="${gs2build.home}/perllib/cpan/perl-5.6"/> 
     
    13481352      dest="${gs2build.home}/perllib/cpan/" 
    13491353      compression="gzip"/> 
     1354--> 
     1355    <echo>Nothing extra currently needed for MacOs install</echo> 
    13501356  </target> 
    13511357 
     
    16691675  </target>  
    16701676 
     1677   
    16711678  <target name="compile-gdbm" depends="init"  if="install.gdbm">    
    16721679    <echo>compile GDBM</echo> 
     1680    <exec executable="groups" outputproperty="usergroups"/> 
     1681    <exec executable="awk" inputstring="${usergroups}" outputproperty="firstgroup"> 
     1682      <arg line="'{print $1}'"/> 
     1683    </exec> 
     1684 
    16731685    <exec executable="make" os="${os.unix},${os.mac}" dir="${gdbm.home}"/> 
    16741686    <exec executable="make" os="${os.unix},${os.mac}" dir="${gdbm.home}"> 
     1687      <arg value="BINOWN=${env.USER}"/> 
     1688      <arg value="BINGRP=${firstgroup}"/> 
    16751689      <arg value="install"/> 
    16761690    </exec>