Changeset 313 for trunk/gsdl/bin
- Timestamp:
- 1999-06-30T15:30:10+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/buildcol.pl
r223 r313 22 22 print STDERR " -archivedir directory Where the archives live\n"; 23 23 print STDERR " -cachedir directory Where to cache the archives\n"; 24 print STDERR " -builddir directory Where to put the built indexes\n\n"; 24 print STDERR " -builddir directory Where to put the built indexes\n"; 25 print STDERR " -maxdocs number Maximum number of documents to build\n"; 26 print STDERR " -allclassifications Don't remove empty classifications\n\n"; 25 27 } 26 28 … … 29 31 { 30 32 if (!parsargv::parse(\@ARGV, 31 'newgdbm', \$newgdbm,32 33 'verbosity/\d+/2', \$verbosity, 33 34 'archivedir/.*/', \$archivedir, 34 35 'cachedir/.*/', \$cachedir, 35 'builddir/.*/', \$builddir)) { 36 'builddir/.*/', \$builddir, 37 'maxdocs/\d+/', \$maxdocs, 38 'allclassifications', \$allclassifications)) { 36 39 &print_usage(); 37 40 die "\n"; 38 41 } 39 40 $newgdbm = 0 unless $newgdbm;41 42 42 43 # get and check the collection … … 45 46 die "\n"; 46 47 } 48 49 # only here to prevent a perl warning 50 $maxdocs = "" if $maxdocs !~ /\d/; 51 $allclassifications = 0 unless $allclassifications == 1; 47 52 48 53 # read the configuration file … … 112 117 113 118 eval("\$builder = new $buildertype(\$collection, " . 114 "\$realarchivedir, \$realbuilddir, \$verbosity, \$newgdbm)"); 119 "\$realarchivedir, \$realbuilddir, \$verbosity, " . 120 "\$maxdocs, \$allclassifications)"); 115 121 die "$@" if $@; 116 122
Note:
See TracChangeset
for help on using the changeset viewer.