IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 10, 2009, 2:57:09 PM (16 years ago)
Author:
bills
Message:

add --ignore_errors to ignore failure to insert duplicate targets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/definetargets

    r25855 r26097  
    1010use Pod::Usage qw( pod2usage );
    1111
    12 my ( $stage, $dist_group, $filter, $clean, $disable, $save_temps);
     12my ( $stage, $dist_group, $filter, $clean, $disable, $ignore_errors, $save_temps);
    1313
    1414my $dbname;
     
    2020           'clean'      => \$clean,
    2121           'disable'    => \$disable,
     22           'ignore_errors' => \$ignore_errors,
    2223           'dbname=s'   => \$dbname,
    2324           'save-temps' => \$save_temps,
     
    6162        my $code = system $command;
    6263        my $status = $code >> 8;
    63         die "$command failed with $code $status\n" if $code;
     64        die "$command failed with $code $status\n" if $code and !$ignore_errors;
    6465    }
    6566  }
Note: See TracChangeset for help on using the changeset viewer.