diff options
author | Charles Bailey <bailey@newman.upenn.edu> | 1999-08-23 03:17:33 +0000 |
---|---|---|
committer | bailey <bailey@newman.upenn.edu> | 1999-08-23 03:17:33 +0000 |
commit | 377875b926c86a98f77adb365611978943fd9ece (patch) | |
tree | 085a46038f85eb8e45d4898a5ff4b0b75ab322a9 /lib/File | |
parent | 1f05249253aa69546cbf0ae3c6f832b50fcc4c8e (diff) | |
download | perl-377875b926c86a98f77adb365611978943fd9ece.tar.gz |
update MM_VMS to use new File::Spec routines
p4raw-id: //depot/vmsperl@4022
Diffstat (limited to 'lib/File')
-rw-r--r-- | lib/File/Spec/VMS.pm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/File/Spec/VMS.pm b/lib/File/Spec/VMS.pm index d13f5e68c2..00c068accb 100644 --- a/lib/File/Spec/VMS.pm +++ b/lib/File/Spec/VMS.pm @@ -22,6 +22,12 @@ See File::Spec::Unix for a documentation of the methods provided there. This package overrides the implementation of these methods, not the semantics. +=item eliminate_macros + +Expands MM[KS]/Make macros in a text string, using the contents of +identically named elements of C<%$self>, and returns the result +as a file specification in Unix syntax. + =cut sub eliminate_macros { @@ -55,6 +61,22 @@ sub eliminate_macros { $npath; } +=item fixpath + +Catchall routine to clean up problem MM[SK]/Make macros. Expands macros +in any directory specification, in order to avoid juxtaposing two +VMS-syntax directories when MM[SK] is run. Also expands expressions which +are all macro, so that we can tell how long the expansion is, and avoid +overrunning DCL's command buffer when MM[KS] is running. + +If optional second argument has a TRUE value, then the return string is +a VMS-syntax directory specification, if it is FALSE, the return string +is a VMS-syntax file specification, and if it is not specified, fixpath() +checks to see whether it matches the name of a directory in the current +default directory, and returns a directory or file specification accordingly. + +=cut + sub fixpath { my($self,$path,$force_path) = @_; return '' unless $path; |