Changeset 814 for trunk


Ignore:
Timestamp:
1999-12-07T10:50:39+13:00 (24 years ago)
Author:
sjboddie
Message:

plugins now take options

Location:
trunk/gsdl/bin/script
Files:
2 edited

Legend:

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

    r784 r814  
    6666             'cachedir/.*/', \$cachedir,
    6767             'builddir/.*/', \$builddir,
    68              'maxdocs/\d+/', \$maxdocs,
     68             'maxdocs/^\-?\d+/-1', \$maxdocs,
    6969             'debug', \$debug,
    7070             'mode/^(all|compress_text|build_index|infodb)$/all', \$mode,
     
    9595    if (defined $collectcfg->{'builddir'} && $builddir eq "") {
    9696        $builddir = $collectcfg->{'builddir'};
    97     }
    98     if (defined $collectcfg->{'textindex'}) {
    99         $textindex = $collectcfg->{'textindex'};
    10097    }
    10198    } else {
  • trunk/gsdl/bin/script/import.pl

    r783 r814  
    7373             'gzip', \$gzip,
    7474             'debug', \$debug,
    75              'maxdocs/\d+/', \$maxdocs)) {
     75             'maxdocs/^\-?\d+/-1', \$maxdocs)) {
    7676    &print_usage();
    7777    die "\n";
     
    8888
    8989    # get the list of plugins for this collection
    90     @plugins = ();
     90    my $plugins = [];
    9191    $configfilename = &util::filename_cat ($ENV{'GSDLCOLLECTDIR'}, "etc/collect.cfg");
    9292    if (-e $configfilename) {
    9393    $collectcfg = &colcfg::read_collect_cfg ($configfilename);
    94     if (defined $collectcfg->{'plugins'}) {
    95         @plugins = @{$collectcfg->{'plugins'}};
     94    if (defined $collectcfg->{'plugin'}) {
     95        $plugins = $collectcfg->{'plugin'};
    9696    }
    9797    if (defined $collectcfg->{'importdir'} && $importdir eq "") {
     
    123123
    124124    # load all the plugins
    125     $pluginfo = &plugin::load_plugins ($collection, \@plugins);
     125    $pluginfo = &plugin::load_plugins ($plugins);
    126126    if (scalar(@$pluginfo) == 0) {
    127127    print STDERR "No plugins were loaded.\n";
Note: See TracChangeset for help on using the changeset viewer.