Changeset 22430 for trunk/ippScripts/scripts/fake_imfile.pl
- Timestamp:
- Feb 24, 2009, 12:00:25 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/fake_imfile.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/fake_imfile.pl
r21371 r22430 41 41 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 42 42 use Pod::Usage qw( pod2usage ); 43 44 # Look for programs we need 45 my $missing_tools; 46 my $faketool = can_run('faketool') or (warn "Can't find faketool" and $missing_tools = 1); 47 my $ppSim = can_run('ppSim') or (warn "Can't find ppSim" and $missing_tools = 1); 48 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1); 49 if ($missing_tools) { 50 warn("Can't find required tools."); 51 exit($PS_EXIT_CONFIG_ERROR); 52 } 43 53 44 54 # Parse the command-line arguments … … 72 82 defined $outroot; 73 83 84 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 85 $SIG{__DIE__} = sub { die @_ if $^S; 86 my_die( $_[0], $exp_id, $fake_id, $class_id, $PS_EXIT_UNKNOWN_ERROR ); }; 87 74 88 $ipprc->define_camera($camera); 75 89 … … 83 97 unless ($recipe) { 84 98 &my_die("Couldn't find selected reduction for FAKE: $reduction\n", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 85 }86 87 # Look for programs we need88 my $missing_tools;89 my $faketool = can_run('faketool') or (warn "Can't find faketool" and $missing_tools = 1);90 my $ppSim = can_run('ppSim') or (warn "Can't find ppSim" and $missing_tools = 1);91 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1);92 if ($missing_tools) {93 warn("Can't find required tools.");94 exit($PS_EXIT_CONFIG_ERROR);95 99 } 96 100
Note:
See TracChangeset
for help on using the changeset viewer.
