Changeset 16301 for trunk/DataStore/scripts/dsget
- Timestamp:
- Feb 4, 2008, 6:57:10 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/DataStore/scripts/dsget (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStore/scripts/dsget
r16178 r16301 3 3 # Copyright (C) 2006-2008 Joshua Hoblitt 4 4 # 5 # $Id: dsget,v 1.1 1 2008-01-22 20:54:45 jhoblittExp $5 # $Id: dsget,v 1.12 2008-02-05 04:57:10 eugene Exp $ 6 6 7 7 use strict; … … 15 15 use File::Temp (); 16 16 use File::Basename qw( basename dirname ); 17 use Nebulous::Util qw( parse_neb_key ); 17 18 18 19 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 39 40 ) unless defined $uri and defined $filename; 40 41 42 # if --nebulous is specified, parse the nebulous name 43 my ($uriVolume, $uriFilename); 44 if ($nebulous) { 45 ($uriVolume, $uriFilename) = parse_neb_key ($filename); 46 } 47 41 48 # --volume implies --nebulous 42 49 if ($volume) { 43 50 $nebulous ||=1; 44 } 51 } 52 53 # if ($uriVolume) { 54 # print "uriVolume: $uriVolume\n"; 55 # } 56 # if ($uriFilename) { 57 # print "uriFilename: $uriFilename\n"; 58 # } 59 60 if ($volume and $uriVolume and ($volume ne $uriVolume)) { 61 die "conflicting volume names specified"; 62 } 63 64 if ($uriVolume) { $volume = $uriVolume; } 65 if ($uriFilename) { $filename = $uriFilename; } 66 67 # if ($volume) { 68 # print "volume: $volume\n"; 69 # } else { 70 # print "volume undefined\n"; 71 # } 72 # print "filename: $filename\n"; 73 # if ($nebulous) { 74 # print "using nebulous\n"; 75 # } 45 76 46 77 my %p = (
Note:
See TracChangeset
for help on using the changeset viewer.
