Changeset 36555 for trunk/ippScripts/scripts
- Timestamp:
- Feb 25, 2014, 2:12:24 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/dist_advancerun.pl (modified) (5 diffs)
-
ippScripts/scripts/dist_bundle.pl (modified) (3 diffs)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (1 prop)
-
ippScripts/scripts/publish_file.pl (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/tags/ipp-20140114 (added) merged: 36444-36446,36448,36450,36461-36462,36513,36538-36540,36546-36547,36551,36554
- Property svn:mergeinfo changed
-
trunk/ippScripts/scripts/dist_advancerun.pl
r35960 r36555 69 69 my $stacktool = can_run('stacktool') or (warn "Can't find stacktool" and $missing_tools = 1); 70 70 my $bgtool = can_run('bgtool') or (warn "Can't find bgtool" and $missing_tools = 1); 71 my $fftool = can_run('fftool') or (warn "Can't find fftool" and $missing_tools = 1); 71 72 my $staticskytool = can_run('staticskytool') or (warn "Can't find staticskytool" and $missing_tools = 1); 72 73 if ($missing_tools) { … … 77 78 78 79 my $tool_cmd; 80 my $tool_cmd2; 79 81 my $list_mode; 80 82 my $component_key; … … 127 129 $list_mode = "-diffskyfile"; 128 130 $component_key = "skycell_id"; 131 } elsif ($stage eq "ff") { 132 $tool_cmd = "$fftool -ff_id"; 133 $list_mode = "-result"; 134 $component_key = "dist_component"; 135 $tool_cmd2 = "$fftool -summary -ff_id" 129 136 } else { 130 137 &my_die("Unexpected stage: $stage", $dist_id, $PS_EXIT_CONFIG_ERROR); … … 132 139 133 140 $tool_cmd .= " $stage_id"; 141 $tool_cmd2 .= " $stage_id" if $tool_cmd2; 134 142 135 143 my $exportarg = '-exportrun'; … … 215 223 my $components = parse_md_list($metadata) or 216 224 &my_die("Unable to parse metadata list", $dist_id, $PS_EXIT_UNKNOWN_ERROR); 225 226 if ($tool_cmd2) { 227 my $command = "$tool_cmd2"; 228 $command .= " -dbname $dbname" if defined $dbname; 229 230 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 231 run(command => $command, verbose => $verbose); 232 unless ($success) { 233 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 234 &my_die("Unable to perform $command: $error_code", $dist_id, $error_code); 235 } 236 if (@$stdout_buf == 0) { 237 &my_die("Unable to perform $command: $error_code", $dist_id, $error_code); 238 } 239 my $metadata = $mdcParser->parse(join "", @$stdout_buf) or 240 &my_die("Unable to parse metadata config doc", $dist_id, $PS_EXIT_UNKNOWN_ERROR); 241 my $more_components = parse_md_list($metadata) or 242 &my_die("Unable to parse metadata list", $dist_id, $PS_EXIT_UNKNOWN_ERROR); 243 if (scalar @$more_components) { 244 push @$components, @$more_components; 245 } 246 } 217 247 218 248 open MANIFEST, ">$resolved" or -
trunk/ippScripts/scripts/dist_bundle.pl
r36457 r36555 496 496 } elsif ($stage eq "stack") { 497 497 $type = $stack_cleaned{$rule}; 498 } elsif ($stage eq "sky" or $stage eq 'skycal' or $stage eq 'stack_summary' ) {498 } elsif ($stage eq "sky" or $stage eq 'skycal' or $stage eq 'stack_summary' or $stage eq 'ff') { 499 499 $type = $empty_cleaned{$rule}; 500 500 } else { … … 588 588 # stack_summary stage does not use a config dump file. 589 589 return build_stack_summary_file_list($path_base, \@file_list); 590 } elsif ($stage eq "ff") { 591 if ($component eq 'summary') { 592 # full force summary does not use a config dump file. Cobble together a file list 593 return build_ff_summary_file_list($path_base, \@file_list); 594 } else { 595 $config_file_rule = "PSPHOT.SKY.CONFIG"; 596 } 590 597 } else { 591 598 &my_die("$stage is not a valid stage", $component, $PS_EXIT_CONFIG_ERROR); … … 742 749 } 743 750 751 # psphotFullForceSummary does not produce a config dump file cobble together a file list 752 sub build_ff_summary_file_list { 753 my ($path_base, $file_list) = @_; 754 755 my %cmf ; 756 $cmf{file_rule} = "SOURCES"; 757 $cmf{name} = "$path_base.cmf"; 758 push @$file_list, \%cmf; 759 760 my %log; 761 $log{file_rule} = "LOG"; 762 $log{name} = "$path_base.log"; 763 push @$file_list, \%log; 764 765 return $file_list; 766 } 767 744 768 sub my_die 745 769 { -
trunk/ippScripts/scripts/ipp_apply_burntool_single.pl
-
Property svn:mergeinfo
set to
/tags/ipp-20140114/ippScripts/scripts/ipp_apply_burntool_single.pl merged eligible /trunk/ippScripts/scripts/ipp_apply_burntool_single.pl merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ippScripts/scripts/publish_file.pl
-
Property svn:mergeinfo
set to
/tags/ipp-20140114/ippScripts/scripts/publish_file.pl merged eligible /trunk/ippScripts/scripts/publish_file.pl merged eligible
-
Property svn:mergeinfo
set to
Note:
See TracChangeset
for help on using the changeset viewer.
