Changeset 12056 for trunk/ippScripts/scripts/diff_skycell.pl
- Timestamp:
- Feb 26, 2007, 11:57:00 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/diff_skycell.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r12051 r12056 37 37 GetOptions( 38 38 'diff_id|d=s' => \$diff_id, # Diff identifier 39 'camera|c=s' => \$camera, # Camera name40 39 'dbname|d=s' => \$dbname, # Database name 41 40 'workdir|w=s' => \$workdir, # Working directory, for output files … … 46 45 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 47 46 pod2usage( 48 -msg => "Required options: --diff_id --camera",47 -msg => "Required options: --diff_id", 49 48 -exitval => 3, 50 ) unless defined $diff_id 51 and defined $camera; 52 53 $ipprc->define_camera($camera); 49 ) unless defined $diff_id; 54 50 55 51 # Look for programs we need … … 88 84 my $template; # Template file 89 85 my $skycell_id; # Skycell identifier 86 my $camera; # Camera 90 87 foreach my $file (@$files) { 91 88 my $uri = $ipprc->convert_filename_absolute( $file->{uri} ); # URI for file … … 101 98 $skycell_id = $file->{skycell_id}; 102 99 } 100 if (defined $camera) { 101 &my_die("Cameras don't match", $diff_id, $PS_EXIT_SYS_ERROR) unless $file->{camera} eq $camera; 102 } else { 103 $camera = $file->{camera}; 104 } 103 105 } 104 106 105 107 &my_die("Unable to identify template", $diff_id, $PS_EXIT_SYS_ERROR) unless defined $template; 106 108 &my_die("Unable to identify input", $diff_id, $PS_EXIT_SYS_ERROR) unless defined $input; 109 $ipprc->define_camera($camera); 107 110 108 111 ### Working directory
Note:
See TracChangeset
for help on using the changeset viewer.
