IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 26, 2011, 6:38:11 PM (15 years ago)
Author:
watersc1
Message:

First draft of 'complete' large area processing code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20110406/Nebulous/bin/neb-shift

    r28446 r31385  
    1616use Pod::Usage qw( pod2usage );
    1717
    18 my ($volume, $server);
     18my ($volume, $server, $nocull, $cull);
    1919
    2020$server = $ENV{'NEB_SERVER'} unless $server;
     
    2323    'volume=s'      => \$volume,
    2424    'server|s=s'    => \$server,
     25    'nocull'        => \$nocull,
     26    'cull'          => \$cull,
    2527) || pod2usage( 2 );
    2628
    2729my $src = shift;
    2830my $abandon_vol = shift;
     31my $do_cull = 0;
    2932
     33if ($nocull) {
     34    $do_cull = 0;
     35}
     36if ($cull) {
     37    $do_cull = 1;
     38}
    3039pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    3140pod2usage( -msg => "Required options: --server <source key> <source volume>",
     
    5463die "Replicate phase failed for $src ($abandon_vol) ($volume)" unless $status;
    5564
    56 $status = $neb->cull($src,$abandon_vol);
     65if ($do_cull) {
     66    $status = $neb->cull($src,$abandon_vol);
    5767
    58 warn "Cull phase failed for $src from $abandon_vol" unless $status;
     68    warn "Cull phase failed for $src from $abandon_vol" unless $status;
     69}
     70
     71
    5972
    6073__END__
Note: See TracChangeset for help on using the changeset viewer.