Changeset 12964
- Timestamp:
- 2006-10-03T11:41:47+13:00 (18 years ago)
- Location:
- trunk/gsdl/bin/script
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/buildcol.pl
r12844 r12964 117 117 'reqd' => "no", 118 118 'modegli' => "4" }, 119 { 'name' => "incremental", 120 'desc' => "{buildcol.incremental}", 121 'type' => "flag", 122 'hiddengli' => "yes" }, 119 123 { 'name' => "keepold", 120 124 'desc' => "{buildcol.keepold}", … … 192 196 'type' => "flag", 193 197 'reqd' => "no", 194 'hiddengli' => "yes" }, 195 { 'name' => "incremental", 196 'desc' => "{buildcol.incremental}", 197 'type' => "flag", 198 'reqd' => "no", 199 'modegli' => "3" } ]; 198 'hiddengli' => "yes" } 199 200 # { 'name' => "incremental_dlc", 201 # 'desc' => "{buildcol.incremental_dlc}", 202 # 'type' => "flag", 203 # 'reqd' => "no", 204 # 'hiddengli' => "yes" } 205 ]; 200 206 201 207 my $options = { 'name' => "buildcol.pl", … … 238 244 # Thompson, DL Consulting Ltd. 239 245 # 240 # @param $incremental If true indicates this build should not regenerate all246 # @param $incremental_dlc If true indicates this build should not regenerate all 241 247 # the index and metadata files, and should instead just 242 248 # append the information found in the archives directory … … 251 257 # command line args 252 258 my ($verbosity, $archivedir, $cachedir, $builddir, $maxdocs, 253 $debug, $mode, $indexname, $removeold, $keepold, $remove_empty_classifications, 259 $debug, $mode, $indexname, $removeold, $keepold, $incremental, 260 $remove_empty_classifications, 254 261 $create_images, $collectdir, $build, $type, $textindex, 255 262 $no_strip_html, $no_text, $faillog, $gli, $index, $language, 256 $sections_index_document_metadata, $maxnumeric, $incremental );263 $sections_index_document_metadata, $maxnumeric, $incremental_dlc); 257 264 258 265 my $xml = 0; 259 266 $incremental_dlc = 0; # this is hidden for now as it doesn't work for standard greenstone at the moment 260 267 my $hashParsingResult = {}; 261 268 # general options available to all plugins … … 430 437 } 431 438 432 ($removeold, $keepold ) = &scriptutil::check_removeold_and_keepold($removeold, $keepold, "building", $collectcfg);439 ($removeold, $keepold, $incremental) = &scriptutil::check_removeold_and_keepold($removeold, $keepold, $incremental, "building", $collectcfg); 433 440 434 441 $gli = 0 unless defined $gli; … … 524 531 eval("\$builder = new $buildertype(\$collection, " . 525 532 "\$realarchivedir, \$realbuilddir, \$verbosity, " . 526 "\$maxdocs, \$debug, \$keepold, \$remove_empty_classifications, " . 527 "\$out, \$no_text, \$faillog, \$gli, \$incremental)"); 533 "\$maxdocs, \$debug, \$keepold, \$incremental, \$incremental_dlc, " . 534 "\$remove_empty_classifications, " . 535 "\$out, \$no_text, \$faillog, \$gli)"); 528 536 die "$@" if $@; 529 537 … … 632 640 # 633 641 # @param $base_dir A string denoting the base path the given dir must be 634 # ab olsute to.642 # absolute to. 635 643 # @param $dir The directory to be made absolute as a string. Note that the 636 644 # dir may already be absolute, in which case it will remain -
trunk/gsdl/bin/script/import.pl
r12821 r12964 124 124 'reqd' => "no", 125 125 'hiddengli' => "yes" }, 126 { 'name' => "incremental", 127 'desc' => "{import.incremental}", 128 'type' => "flag", 129 'hiddengli' => "yes" }, 126 130 { 'name' => "keepold", 127 131 'desc' => "{import.keepold}", … … 236 240 237 241 sub main { 238 my ($verbosity, $importdir, $archivedir, $manifest, $ keepold,242 my ($verbosity, $importdir, $archivedir, $manifest, $incremental, $keepold, 239 243 $removeold, $saveas, $version, 240 244 $gzip, $groupsize, $OIDtype, $OIDmetadata, $debug, … … 432 436 433 437 # check keepold and removeold 434 ($removeold, $keepold ) = &scriptutil::check_removeold_and_keepold($removeold, $keepold, "archives", $collectcfg);438 ($removeold, $keepold, $incremental) = &scriptutil::check_removeold_and_keepold($removeold, $keepold, $incremental, "archives", $collectcfg); 435 439 436 440 $gli = 0 unless defined $gli; … … 454 458 455 459 # load all the plugins 456 $pluginfo = &plugin::load_plugins ($plugins, $verbosity, $out, $faillog, \@global_opts );460 $pluginfo = &plugin::load_plugins ($plugins, $verbosity, $out, $faillog, \@global_opts, $incremental); 457 461 if (scalar(@$pluginfo) == 0) { 458 462 &gsprintf($out, "{import.no_plugins_loaded}\n");
Note:
See TracChangeset
for help on using the changeset viewer.