Changeset 23186 for trunk/ippScripts/scripts/magic_definerun.pl
- Timestamp:
- Mar 4, 2009, 4:17:15 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/magic_definerun.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_definerun.pl
r21006 r23186 25 25 use PS::IPP::Config 1.01 qw( :standard ); 26 26 27 my $ipprc = PS::IPP::Config->new(); # IPP configuration28 29 27 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 30 28 use Pod::Usage qw( pod2usage ); 31 29 30 # Look for programs we need 31 my $missing_tools; 32 my $magictool = can_run('magictool') or (warn "Can't find magictool" and $missing_tools = 1); 33 my $difftool = can_run('difftool') or (warn "Can't find difftool" and $missing_tools = 1); 34 my $warptool = can_run('warptool') or (warn "Can't find warptool" and $missing_tools = 1); 35 if ($missing_tools) { 36 warn("Can't find required tools."); 37 exit($PS_EXIT_CONFIG_ERROR); 38 } 39 32 40 # Parse the command-line arguments 33 41 my ($exp_id, $warp_id, $min_diff_id, $label, $workdir, $dbname, $save_temps, $verbose); 34 35 42 GetOptions( 36 43 'exp_id=s' => \$exp_id, # exposure identifier … … 50 57 defined $warp_id; 51 58 52 # $ipprc->define_camera($camera); 53 54 # Look for programs we need 55 my $missing_tools; 56 my $magictool = can_run('magictool') or (warn "Can't find magictool" and $missing_tools = 1); 57 my $difftool = can_run('difftool') or (warn "Can't find difftool" and $missing_tools = 1); 58 my $warptool = can_run('warptool') or (warn "Can't find warptool" and $missing_tools = 1); 59 if ($missing_tools) { 60 warn("Can't find required tools."); 61 exit($PS_EXIT_CONFIG_ERROR); 62 } 59 my $ipprc = PS::IPP::Config->new() or my_die("Unable to set up", $PS_EXIT_CONFIG_ERROR); # IPP configuration 63 60 64 61 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
Note:
See TracChangeset
for help on using the changeset viewer.
