Changeset 4766


Ignore:
Timestamp:
2003-06-23T14:41:00+12:00 (21 years ago)
Author:
kjdon
Message:

no longer give the buildtype option to teh script - it only makes sense to change this in the collect.cfg - cant use a different buildtype with the other ones index specification. new config files will use searchtype instead - this sets buildtype to mgpp. however, if searchtype is not defined, we look for buildtype, if thats not defined, the coll is assumed to be mg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/buildcol.pl

    r3729 r4766  
    7272    print STDOUT "   -out                  Filename or handle to print output status to.\n";
    7373    print STDOUT "                         The default is STDERR\n";
    74     print STDOUT "   -buildtype mg|mgpp    This will override the config file setting.\n";
    75     print STDOUT "                         (default is mg)\n";
    7674    print STDOUT "   -no_strip_html        Do not strip the html tags from the indexed text\n";
    7775    print STDOUT "                         (only used for mgpp collections).\n\n";
     
    110108             'out/.*/STDERR', \$out,
    111109             'no_strip_html', \$no_strip_html,
    112              'buildtype/^(mg|mgpp)$/', \$buildtype,
    113110             'faillog/.*/', \$faillog)) {
    114111    &print_usage();
     
    153150        }
    154151    }
    155     if (defined $collectcfg->{'buildtype'} && $buildtype eq "") {
     152    # we use searchtype for determining buildtype, but for old versions, use buildtype
     153    if (defined $collectcfg->{'searchtype'}) {
     154        $buildtype = "mgpp";
     155    }
     156    elsif (defined $collectcfg->{'buildtype'}) {
    156157        $buildtype = $collectcfg->{'buildtype'};
    157     }
    158     if ($buildtype eq "") {
    159         $buildtype = "mg"; # mg is the default
     158    } else {
     159        $buildtype = "mg"; #mg is the default
    160160    }
    161161    if (defined $collectcfg->{'archivedir'} && $archivedir eq "") {
Note: See TracChangeset for help on using the changeset viewer.