Changeset 25896
- Timestamp:
- 2012-07-04T15:36:09+12:00 (11 years ago)
- Location:
- main/trunk/greenstone2/bin/script
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/activate.pl
r25892 r25896 478 478 479 479 &print_task_msg("Running Collection Activation Stage"); 480 481 # can't do anything without a build directory with something in it to move into index 482 if(!&util::dir_exists($build_dir)) { 483 &print_msg("No building folder at $build_dir to move to index.\n"); 484 exit -1; 485 } elsif (&util::is_dir_empty($build_dir)) { 486 &print_msg("Nothing in building folder $build_dir to move into index folder.\n"); 487 exit -1; 488 } 489 480 490 481 # get and check the collection name 491 482 if ((&colcfg::use_collection($site, $qualified_collection, $collect_dir)) eq "") { … … 523 514 } else { 524 515 $buildtype = "mg"; #mg is the default 516 } 517 518 # can't do anything without a build directory with something in it to move into index 519 # Except if we're (doing incremental) building for solr, where we want to still 520 # activate and deactivate collections including for the incremental case 521 if(!&util::dir_exists($build_dir)) { 522 &print_msg("No building folder at $build_dir to move to index.\n"); 523 exit -1 unless ($buildtype eq "solr"); #&& $incremental); 524 } elsif (&util::is_dir_empty($build_dir)) { 525 &print_msg("Nothing in building folder $build_dir to move into index folder.\n"); 526 exit -1 unless ($buildtype eq "solr"); #&& $incremental); 525 527 } 528 526 529 527 530 my $solr_server; -
main/trunk/greenstone2/bin/script/buildcol.pl
r25758 r25896 700 700 push(@activate_argv,"-removeold") if($removeold); 701 701 push(@activate_argv,"-keepold") if($keepold); 702 push(@activate_argv,"-incremental") if($incremental); 702 703 my $quoted_argv = join(" ", map { "\"$_\"" } @activate_argv); 703 704
Note:
See TracChangeset
for help on using the changeset viewer.