Ignore:
Timestamp:
2017-06-26T16:01:43+12:00 (7 years ago)
Author:
ak19
Message:

Two fixes Kathy requested: 1. when running buildcol, ONLY deactivate a collection surrounding the lock-sensitive make_infodatabase() calls IF incremental. 2. Allow buildcol.pl to accept activate parameters like library_url (library_name and skipactivation). full-(re)build and incremental-(re)build scripts already accept additional parameters such as with -activate:skipactivation, but buildcol.pl doesn't work that way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/buildcol.pl

    r28801 r31753  
    256256    'reqd' => "no",
    257257    'hiddengli' => "yes" },
    258       { 'name' => "activate",
     258      { 'name' => "activate",
    259259    'desc' => "{buildcol.activate}",
    260260    'type' => "flag",
     261    'reqd' => "no",
     262    'hiddengli' => "yes" },
     263      { 'name' => "skipactivation",
     264    'desc' => "{buildcol.skipactivation}",
     265    'type' => "flag",
     266    'reqd' => "no",
     267    'hiddengli' => "yes" },
     268      { 'name' => "library_url",
     269    'desc' => "{buildcol.library_url}",
     270    'type' => "string",
     271    'reqd' => "no",
     272    'hiddengli' => "yes" },
     273      { 'name' => "library_name",
     274    'desc' => "{buildcol.library_name}",
     275    'type' => "string",
    261276    'reqd' => "no",
    262277    'hiddengli' => "yes" },
     
    318333      elsif ($subclass ne $required_subclass)
    319334      {
    320         print STDERR "Error! You cannot specify arguments from two different extention specific buildcolutils modules: " . $subclass . " != " . $required_subclass . "\n";
     335        print STDERR "Error! You cannot specify arguments from two different extension specific buildcolutils modules: " . $subclass . " != " . $required_subclass . "\n";
    321336        exit;
    322337      }
     
    331346    $buildcolutils = new $subclass(\@ARGV, $options);
    332347  }
    333   # We don't have a overridden buildcolutils, or the above command failed
     348  # We don't have an overridden buildcolutils, or the above command failed
    334349  # somehow so load the base class
    335350  if (!defined $buildcolutils)
Note: See TracChangeset for help on using the changeset viewer.