Changeset 38754 for main/trunk


Ignore:
Timestamp:
2024-02-20T11:56:37+13:00 (3 months ago)
Author:
kjdon
Message:

added handling for -importflag, -buildcolflag, -activateflag - use these for flag options which have to value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/full-rebuild.pl

    r38358 r38754  
    5757        print STDERR "         as is, such as -verbosity 5.  This value will be passed to both programs.\n";
    5858    print STDERR "       If a minus option is specific to one of the programs in particular, then prefix\n";
    59     print STDERR "         it with 'import:', 'buildcol:', or 'activate:' respectively, \n";
     59    print STDERR "         it with '-import:', '-buildcol:', or '-activate:' respectively, \n";
    6060    print STDERR "         as in '-import:OIDtype hash_on_full_filename'\n";
     61        print STDERR "       If a minus option has no value, prefix it with\n";
     62        print STDERR "         '-importflag:', '-buildcolflag:', '-activateflag:'\n";
     63        print STDERR "         as in '-activateflag:skipactivation'\n";
    6164    print STDERR "       Run '(full-)import.pl -h', '(full-)buildcol.pl -h', 'activate.pl -h' from the \n";
    6265    print STDERR "         command line to see the specific values they take.\n";
    63         print STDERR "       Note, if you want to skip the actual activation on the server, add '-activate:skipactivation 0'\n";
    6466    print STDERR "\n";
    6567
     
    118120        push(@import_argv,$import_arg,$import_val);
    119121    }
     122        elsif ($arg =~ /-importflag:(.*)$/) {
     123            my $import_arg = "-".$1;
     124            push(@import_argv, $import_arg);
     125        }
    120126    elsif ($arg =~ /-buildcol:(.*)$/) {     
    121127        my $buildcol_arg = "-".$1;
     
    123129        push(@buildcol_argv,$buildcol_arg,$buildcol_val);
    124130    }
     131    elsif ($arg =~ /-buildcolflag:(.*)$/) {     
     132        my $buildcol_arg = "-".$1;
     133        push(@buildcol_argv,$buildcol_arg);
     134    }
    125135    elsif ($arg =~ /-activate:(.*)$/) {     
    126136        my $activate_arg = "-".$1;
    127137        my $activate_val = shift @argv;
    128138        push(@activate_argv,$activate_arg,$activate_val);
     139    }
     140    elsif ($arg =~ /-activateflag:(.*)$/) {     
     141        my $activate_arg = "-".$1;
     142        push(@activate_argv,$activate_arg);
    129143    }
    130144    elsif ($arg eq "-library_url" || $arg eq "-library_name") {
Note: See TracChangeset for help on using the changeset viewer.