Changeset 19560
- Timestamp:
- Sep 15, 2008, 2:24:12 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/chip_imfile.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/chip_imfile.pl
r19397 r19560 45 45 46 46 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 47 pod2usage( -msg => "Required options: --exp_id --chip_id --class_id --uri --camera --outroot ",47 pod2usage( -msg => "Required options: --exp_id --chip_id --class_id --uri --camera --outroot --run-state", 48 48 -exitval => 3) unless 49 49 defined $exp_id and … … 52 52 defined $uri and 53 53 defined $camera and 54 defined $outroot; 55 56 if (not defined $run_state) { $run_state = 'new'; } 54 defined $outroot and 55 defined $run_state; 57 56 58 57 $ipprc->define_camera($camera); 59 58 60 59 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); 61 $logDest .= " _update" if $run_state eq "update";60 $logDest .= ".update" if $run_state eq "update"; 62 61 63 62 $ipprc->redirect_output($logDest) if $redirect; … … 137 136 my $configuration = $ipprc->filename("PPIMAGE.CONFIG", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); 138 137 138 if ($run_state eq 'update') { 139 $outputStats .= '.update'; 140 $traceDest .= '.update'; 141 } 142 139 143 # Run ppImage 140 144 unless ($no_op) { … … 142 146 ## XXX also stats: output should be implied by $outroot 143 147 my $command; 144 my $do_stats = 1;148 my $do_stats; 145 149 146 150 if ($run_state eq "new") { … … 151 155 $command .= " -dumpconfig $configuration"; 152 156 $command .= " -tracedest $traceDest -log $logDest"; 157 $do_stats = 1; 153 158 } else { 154 155 $do_stats = 0; # XXX write stats to an alternate file and compare?156 157 159 $command = "$ppImage -file $uri $outroot"; 158 160 $command .= " -ipprc $configuration"; 159 161 $command .= " -threads $threads" if defined $threads; 160 162 $command .= " -dbname $dbname" if defined $dbname; 161 $command .= " -tracedest $ {traceDest}_update-log $logDest";163 $command .= " -tracedest $traceDest -log $logDest"; 162 164 $command .= " -Db PPIMAGE:PHOTOM FALSE"; 163 165 }
Note:
See TracChangeset
for help on using the changeset viewer.
