- Timestamp:
- Feb 11, 2011, 2:49:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/ippScripts/scripts/dist_component.pl
r27718 r30579 21 21 use PS::IPP::Metadata::Config; 22 22 use PS::IPP::Metadata::List qw( parse_md_list ); 23 24 23 use PS::IPP::Config 1.01 qw( :standard ); 25 26 my $ipprc = PS::IPP::Config->new(); # IPP configuration27 24 28 25 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 77 74 defined $outdir; 78 75 76 my $ipprc = PS::IPP::Config->new($camera); # IPP configuration 79 77 $ipprc->redirect_output($logfile) if $logfile; 78 79 my $temproot = metadataLookupStr($ipprc->{_siteConfig}, "TEMP.DIR"); 80 81 $temproot = "/tmp" if !defined $temproot; 80 82 81 83 if (($stage eq 'raw') and !$clean and !defined $chip_path_base) { … … 85 87 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files 86 88 87 my ($rf, $rf_name) = tempfile(" /tmp/bundleresults.$dist_id.$component.XXXX", UNLINK => !$save_temps);89 my ($rf, $rf_name) = tempfile("$temproot/bundleresults.$dist_id.$component.XXXX", UNLINK => !$save_temps); 88 90 close $rf; 91 92 my $basename = basename($path_base); 93 my $outroot = "$outdir/$basename"; 89 94 90 95 my ($file_name, $bytes, $md5sum); … … 92 97 my $command = "$dist_make_bundle --camera $camera --stage $stage --stage_id $stage_id"; 93 98 $command .= " --results_file $rf_name"; 94 $command .= " --component $component --path_base $path_base --out dir $outdir";99 $command .= " --component $component --path_base $path_base --outroot $outroot"; 95 100 $command .= " --chip_path_base $chip_path_base" if $chip_path_base; 96 101 $command .= " --state $run_state" if defined $run_state; … … 136 141 &my_die("undefined file md5sum from dist_bundle.pl", $dist_id, $component, $outdir, $PS_EXIT_PROG_ERROR) unless defined $md5sum; 137 142 } 143 138 144 139 145 {
Note:
See TracChangeset
for help on using the changeset viewer.
