Changeset 30926
- Timestamp:
- Mar 16, 2011, 12:13:32 PM (15 years ago)
- Location:
- tags/ipp-20110218/ippScripts/scripts
- Files:
-
- 2 edited
-
dist_bundle.pl (modified) (8 diffs, 1 prop)
-
dist_component.pl (modified) (4 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20110218/ippScripts/scripts/dist_bundle.pl
- Property svn:mergeinfo set to
r30653 r30926 70 70 71 71 # Parse the command-line arguments 72 my ($camera, $stage, $stage_id, $component, $path_base, $chip_path_base, $alt_path_base, $clean );72 my ($camera, $stage, $stage_id, $component, $path_base, $chip_path_base, $alt_path_base, $clean, $exp_type); 73 73 my ($outroot, $run_state, $data_state, $magicked, $no_magic, $poor_quality, $results_file, $prefix); 74 74 my ($dbname, $save_temps, $verbose, $no_update, $logfile); … … 89 89 'alt_path_base=s'=> \$alt_path_base, # path to alternate inputs 90 90 'outroot=s' => \$outroot, # outroot 91 'exp_type=s' => \$exp_type, # exp_type (only used for raw stage 91 92 'prefix=s' => \$prefix, # "prefix" to apply to filenames 92 93 'clean' => \$clean, # create clean distribution … … 99 100 100 101 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 101 pod2usage( -msg => "Required options: --camera --stage --stage_id --component -- path_base --outroot",102 pod2usage( -msg => "Required options: --camera --stage --stage_id --component --exp_type --path_base --outroot", 102 103 -exitval => 3) unless 103 104 defined $camera and … … 105 106 defined $stage_id and 106 107 defined $component and 108 defined $exp_type and 107 109 defined $path_base and 108 110 defined $outroot; … … 110 112 $ipprc->redirect_output($logfile) if $logfile; 111 113 112 if (($stage eq 'raw') and !$clean and !defined $chip_path_base) { 113 pod2usage( -msg => "Required options: --chip_path_base for raw stage", -exitval => 3); 114 if ($stage eq 'raw' and !$clean and !$no_magic) { 115 # need to be able to find chip mask file 116 if ($exp_type eq 'OBJECT' and !defined $chip_path_base) { 117 pod2usage( -msg => "Required options: --chip_path_base for raw stage", -exitval => 3); 118 } 114 119 } 115 120 … … 123 128 my $file_list = get_file_list($stage, $component, $path_base, $clean); 124 129 125 if (($stage ne 'raw') and ($stage ne 'fake') ) {130 if (($stage ne 'raw') and ($stage ne 'fake') and !$poor_quality) { 126 131 # If the file list is empty it is an error because we should at least get a config dump file 127 132 # except for fake stage which doesn't do anything yet … … 493 498 push @file_list, \%image; 494 499 495 my %burntool_table; 496 $burntool_table{file_rule} = "BURNTOOL.TABLE"; 497 $burntool_table{name} = "$path_base.burn.tbl"; 498 push @file_list, \%burntool_table; 500 if ($exp_type eq 'OBJECT' and $camera eq 'GPC1') { 501 my %burntool_table; 502 $burntool_table{file_rule} = "BURNTOOL.TABLE"; 503 $burntool_table{name} = "$path_base.burn.tbl"; 504 push @file_list, \%burntool_table; 505 } 499 506 } 500 507 return \@file_list; … … 541 548 my $resolved = $ipprc->file_resolve($config_file); 542 549 550 if (!$resolved and $poor_quality) { 551 print STDERR "non config file found but continuing since component has poor quality\n"; 552 return undef 553 } 543 554 &my_die("failed to resolve name of config dump file: $config_file_rule", $component, 544 555 $PS_EXIT_CONFIG_ERROR) if (!$resolved); -
tags/ipp-20110218/ippScripts/scripts/dist_component.pl
- Property svn:mergeinfo set to
r30489 r30926 37 37 # Parse the command-line arguments 38 38 my ($dist_id, $camera, $stage, $stage_id, $component, $path_base, $chip_path_base, $clean, $alt_path_base); 39 my ($outdir, $run_state, $data_state, $magicked, $no_magic, $poor_quality );39 my ($outdir, $run_state, $data_state, $magicked, $no_magic, $poor_quality, $exp_type); 40 40 my ($dbname, $save_temps, $verbose, $no_update, $logfile); 41 41 … … 53 53 'no_magic' => \$no_magic, # magic is not required for this distribution run 54 54 'magicked' => \$magicked, # magicked state for this component 55 'exp_type=s' => \$exp_type, 55 56 'alt_path_base=s'=> \$alt_path_base, # path to alternate inputs 56 57 'outdir=s' => \$outdir, # "directory" for outputs … … 81 82 $temproot = "/tmp" if !defined $temproot; 82 83 83 if (($stage eq 'raw') and !$clean and ! defined $chip_path_base) {84 pod2usage( -msg => "Required options: --chip_path_base for raw stage", -exitval => 3);84 if (($stage eq 'raw') and !$clean and !(defined $chip_path_base and defined $exp_type)) { 85 pod2usage( -msg => "Required options: --chip_path_base --exp_type for raw stage", -exitval => 3); 85 86 } 86 87 … … 105 106 $command .= " --magicked" if defined $magicked; 106 107 $command .= " --alt_path_base $alt_path_base" if defined $alt_path_base; 108 $command .= " --exp_type $exp_type" if defined $exp_type; 107 109 $command .= " --clean" if defined $clean; 108 110 $command .= " --save-temps" if defined $save_temps;
Note:
See TracChangeset
for help on using the changeset viewer.
