- Timestamp:
- Mar 30, 2011, 9:36:02 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/ippScripts/scripts/dist_component.pl
r30489 r31083 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.
