Changeset 16745 for trunk/ippScripts/scripts/ipp_serial_diff.pl
- Timestamp:
- Feb 28, 2008, 4:32:51 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/ipp_serial_diff.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_diff.pl
r16336 r16745 27 27 my ($dbname, # Database name to use 28 28 $verbose, # Verbose operations? 29 $workdir_global, # Global working directory 29 30 $no_op, # No operations? 30 31 $no_update, # No updating? … … 33 34 'dbname=s' => \$dbname, 34 35 'verbose' => \$verbose, 36 'workdir' => \$workdir_global, 35 37 'no-op' => \$no_op, 36 38 'no-update' => \$no_update, … … 73 75 my $workdir = $item->{workdir}; 74 76 75 my $command = "$diff_skycell --diff_id $diff_id --dbname $dbname"; 77 $workdir = $workdir_global unless defined $workdir and $workdir ne "NULL"; 78 die "No working directory specified.\n" unless defined $workdir; 79 80 my $outroot = caturi( $workdir, "tess_$tess_id", $skycell_id, "$tess_id.$skycell_id.diff.$diff_id" ); 81 82 my $command = "$diff_skycell --diff_id $diff_id --dbname $dbname --outroot $outroot"; 76 83 $command .= " --verbose" if defined $verbose; 77 84 $command .= " --no-op" if defined $no_op; 78 85 $command .= " --no-update" if defined $no_update; 79 $command .= " --workdir $workdir" if defined $workdir;80 86 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 81 87 run( command => $command, verbose => 1 ); 82 ###die "Unable to do difference for $diff_id: $error_code\n" if not $success;88 die "Unable to do difference for $diff_id: $error_code\n" if not $success; 83 89 } 84 90 }
Note:
See TracChangeset
for help on using the changeset viewer.
