Changeset 314 for trunk/gsdl/bin/script


Ignore:
Timestamp:
1999-06-30T15:30:56+12:00 (25 years ago)
Author:
sjboddie
Message:

added maxdocs command line option

File:
1 edited

Legend:

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

    r169 r314  
    2626    print STDERR "                          archives directory (the default)\n";
    2727    print STDERR "   -removeold             Will remove the old contents of the archives\n";
    28     print STDERR "                          directory -- use with care\n\n";
     28    print STDERR "                          directory -- use with care\n";
     29    print STDERR "   -maxdocs number        Maximum number of documents to import\n\n";
    2930}
    3031
     
    3839             'archivedir/.*/', \$archivedir,
    3940             'keepold', \$keepold,
    40              'removeold', \$removeold)) {
     41             'removeold', \$removeold,
     42             'maxdocs/\d+/', \$maxdocs)) {
    4143    &print_usage();
    4244    die "\n";
     
    113115    # process the import directory
    114116    &plugin::read ($pluginfo, $importdir,
    115            "", {}, $processor);
     117           "", {}, $processor, $maxdocs);
    116118   
    117119    # write out the archive information file
Note: See TracChangeset for help on using the changeset viewer.