Changeset 22430 for trunk/ippScripts/scripts/warp_overlap.pl
- Timestamp:
- Feb 24, 2009, 12:00:25 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/warp_overlap.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_overlap.pl
r20655 r22430 25 25 26 26 my $ipprc = PS::IPP::Config->new(); # IPP configuration 27 28 # Look for programs we need 29 my $missing_tools; 30 my $warptool = can_run('warptool') or (warn "Can't find warptool" and $missing_tools = 1); 31 my $dvoImageOverlaps = can_run('dvoImageOverlaps') or (warn "Can't find dvoImageOverlaps" and $missing_tools = 1); 32 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1); 33 if ($missing_tools) { 34 warn("Can't find required tools."); 35 exit($PS_EXIT_CONFIG_ERROR); 36 } 27 37 28 38 my ($warp_id, $camera, $tess_dir, $dbname, $verbose, $no_update, $no_op, $logfile, $save_temps); … … 49 59 and defined $tess_dir; 50 60 61 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 62 $SIG{__DIE__} = sub { die @_ if $^S; 63 my_die( $_[0], $warp_id, $PS_EXIT_UNKNOWN_ERROR ); }; 64 51 65 $ipprc->define_camera($camera); 52 53 # Look for programs we need54 my $missing_tools;55 my $warptool = can_run('warptool') or (warn "Can't find warptool" and $missing_tools = 1);56 my $dvoImageOverlaps = can_run('dvoImageOverlaps') or (warn "Can't find dvoImageOverlaps" and $missing_tools = 1);57 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1);58 if ($missing_tools) {59 warn("Can't find required tools.");60 exit($PS_EXIT_CONFIG_ERROR);61 }62 66 63 67 &my_die("Tessellation identifier not provided: $tess_dir", $warp_id, $PS_EXIT_SYS_ERROR) unless $tess_dir ne "NULL";
Note:
See TracChangeset
for help on using the changeset viewer.
