- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/ipp_image_path.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ippScripts/scripts/ipp_image_path.pl
r22429 r27840 19 19 use PS::IPP::Metadata::Config; 20 20 use PS::IPP::Config 1.01 qw( :standard ); 21 use Nebulous::Client; 21 22 22 23 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 23 24 use Pod::Usage qw( pod2usage ); 24 25 25 my ($exp_name, $class_id, $from_registered, $dbname, $verbose );26 my ($exp_name, $class_id, $from_registered, $dbname, $verbose, $alternate); 26 27 27 28 GetOptions( … … 31 32 'dbname|d=s' => \$dbname, # Database name 32 33 'verbose' => \$verbose, # Print to stdout 34 'alternate' => \$alternate, 33 35 ) or pod2usage( 2 ); 34 36 … … 99 101 $path = resolve_ipp008_file($uri); 100 102 } elsif ($use_017_workaround && ($uri =~ /4683/) && 101 ($uri =~ /ipp017/)) {103 ($uri =~ /ipp017/)) { 102 104 $path = resolve_ipp017_file($uri); 103 } else { 105 } elsif ($alternate) { 106 my $neb = $ipprc->nebulous(); 107 my $uris = $neb->find_instances($uri,'any'); 108 my @files = map {URI->new($_)->file if $_} @$uris; 109 110 if ($#files > 0) { 111 $path = $files[1]; 112 } 113 else { 114 $path = $files[0]; 115 } 116 117 } 118 else { 104 119 $path = $ipprc->file_resolve($uri); 105 120 } … … 108 123 # remove the leading "file://" if present 109 124 $path =~ s/^file\:\/\///; 125 $nfiles++; 126 print "$path\n"; 110 127 } 111 $nfiles++;112 print "$path\n";113 128 } 114 129 if (!$nfiles) {
Note:
See TracChangeset
for help on using the changeset viewer.
