Changeset 25027 for branches/pap/tools/stack_inputs.pl
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tools/stack_inputs.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/tools/stack_inputs.pl
r21427 r25027 24 24 my ($stack_id); # Stack of interest 25 25 my ($input); # Input list 26 my ($muggle); # No magicked inputs? 26 27 27 28 GetOptions( … … 32 33 'stack_id=s' => \$stack_id, # Stack identifier 33 34 'input=s' => \$input, # Input list to generate 35 'muggle' => \$muggle, # No magicked inputs? 34 36 ) or die "Unable to parse arguments.\n"; 35 37 die "Unknown option: @ARGV\n" if @ARGV; … … 70 72 print $list "INPUT METADATA\n" if defined $input; 71 73 foreach my $type ( keys %{EXTENSIONS()} ) { 74 my $path = $warp_path; 75 if (defined $muggle and $type ne "PSF") { 76 my @warp = split /\//, $warp_path; 77 my $last = pop @warp; 78 push @warp, "SR_$last"; 79 $path = join '/', @warp; 80 } 72 81 my $ext = ${EXTENSIONS()}{$type}; # Extension 73 my $file = "$ warp_path$ext"; # File82 my $file = "$path$ext"; # File 74 83 my $source = `ipp_datapath.pl $file` or die "Unable to locate $file\n"; # Resolved file name 75 84 chomp $source;
Note:
See TracChangeset
for help on using the changeset viewer.
