Changeset 25240
- Timestamp:
- Sep 1, 2009, 6:06:53 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_mops/ippScripts/scripts/publish_file.pl
r25239 r25240 40 40 # Parse the command-line arguments 41 41 my ( $pub_id, $camera, $stage, $stage_id, $fileset, $format, $product, $workdir ); 42 my ( $dbname, $verbose, $no_update, $ save_temps, $redirect );42 my ( $dbname, $verbose, $no_update, $no_op, $save_temps, $redirect ); 43 43 44 44 GetOptions( … … 53 53 'verbose' => \$verbose, # Print to stdout 54 54 'no-update' => \$no_update, # Don't update the database? 55 'no-op' => \$no_op, # Don't do any operations 55 56 'save-temps' => \$save_temps, # Save temporary files? 56 57 'redirect-output' => \$redirect, # Redirect output to log file? … … 141 142 fake_id => $comp->{fake_id_1}, 142 143 warp_id => $comp->{warp1}, 144 diff_id => $comp->{diff_id}, 143 145 direction => 1, 144 146 }; … … 166 168 fake_id => $comp->{fake_id_2}, 167 169 warp_id => $comp->{warp2}, 170 diff_id => $comp->{diff_id}, 168 171 direction => 0, 169 172 }; … … 274 277 $command .= " -astrom_rms " . $data->{astrom} if defined $data->{astrom}; 275 278 276 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 277 run(command => $command, verbose => $verbose); 278 &my_die( "Unable to translate", $pub_id, $PS_EXIT_SYS_ERROR) unless $success; 279 &my_die( "Unable to find translated file $output", $pub_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $output ); 279 unless ($no_op) { 280 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 281 run(command => $command, verbose => $verbose); 282 &my_die( "Unable to translate", $pub_id, $PS_EXIT_SYS_ERROR) unless $success; 283 &my_die( "Unable to find translated file $output", $pub_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $output ); 284 } else { 285 print "Not running: $command\n"; 286 } 280 287 281 288 return $output;
Note:
See TracChangeset
for help on using the changeset viewer.
