Changeset 22032

Show
Ignore:
Timestamp:
04.05.2010 16:14:12 (9 years ago)
Author:
davidb
Message:

Options supported by mkcol.pl expanding to include -buildtype and -infodbtype

Location:
main/trunk/greenstone2
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/mkcol.pl

    r21301 r22032  
    103103      { 'name' => "about", 
    104104    'desc' => "{mkcol.about}", 
     105    'type' => "string", 
     106    'reqd' => "no" }, 
     107      { 'name' => "buildtype", 
     108    'desc' => "{mkcol.buildtype}", 
     109    'type' => "string", 
     110    'reqd' => "no" }, 
     111      { 'name' => "infodbtype", 
     112    'desc' => "{mkcol.infodbtype}", 
    105113    'type' => "string", 
    106114    'reqd' => "no" }, 
     
    141149# options 
    142150my ($creator, $optionfile, $maintainer, $gs3mode, $group, $collectdir, $site,  
    143     $public,  
    144     $title, $about, $plugin, $quiet, $language, $win31compat, $gli); 
     151    $public, $title, $about, $buildtype, $infodbtype, $plugin, $quiet,  
     152    $language, $win31compat, $gli); 
    145153 
    146154#other variables 
     
    233241        $line =~ s/\*\*title\*\*/$title/g; 
    234242        $line =~ s/\*\*about\*\*/$about/g; 
     243        $line =~ s/\*\*buildtype\*\*/$buildtype/g; 
     244        $line =~ s/\*\*infodbtype\*\*/$infodbtype/g; 
    235245        if (!$gs3mode) { 
    236246           $line =~ s/\*\*plugins\*\*/$pluginstring/g; 
     
    362372 
    363373    $public = "true" unless defined $public; 
     374 
     375    $buildtype  = "mgpp" unless defined $buildtype; 
     376    $infodbtype = "gdbm" unless defined $infodbtype; 
     377 
    364378 
    365379    if (!defined($title) || $title eq "") { 
  • main/trunk/greenstone2/collect/modelcol/etc/collect.cfg

    r20871 r22032  
    33public        **public** 
    44 
    5 buildtype   mgpp 
     5buildtype   **buildtype** 
     6infodbtype  **infodbtype** 
    67 
    78indexes     text dc.Title,ex.Title Source 
  • main/trunk/greenstone2/perllib/strings.properties

    r21800 r22032  
    400400mkcol.about:The about text for the collection. 
    401401 
     402mkcol.buildtype:The 'buildtype' for the collection (e.g. mg, mgpp, lucene) 
     403 
     404mkcol.infodbtype:The 'infodbtype' for the collection (e.g. gdbm, jdbm, sqlite) 
     405 
    402406mkcol.bad_name_cvs:ERROR: No collection can be named CVS as this may interfere with directories created by the CVS versioning system. 
    403407