diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2005-03-31 12:55:58 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2005-03-31 12:55:58 +0000 |
commit | 99f69395329cac337d70e299302548c21cf135fc (patch) | |
tree | 6d69b8cfc4e7b15613dca30e6ce7ae803ed0aaaa /modules/WinProjectBase.pm | |
parent | aca1e82d9cd3836b7d40e490aebca9644e45bac2 (diff) | |
download | MPC-99f69395329cac337d70e299302548c21cf135fc.tar.gz |
ChangeLogTag: Thu Mar 31 06:53:14 2005 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/WinProjectBase.pm')
-rw-r--r-- | modules/WinProjectBase.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/WinProjectBase.pm b/modules/WinProjectBase.pm index 6f0db62a..b690a82f 100644 --- a/modules/WinProjectBase.pm +++ b/modules/WinProjectBase.pm @@ -16,6 +16,22 @@ use strict; # Subroutine Section # ************************************************************ +sub validated_directory { + my($self) = shift; + my($dir) = shift; + + ## $(...) could contain a drive letter and Windows can not + ## make a directory that resembles a drive letter. So, we have + ## to exclude those directories with $(...). + if ($dir =~ /\$\([^\)]+\)/) { + return '.'; + } + else { + return $dir; + } +} + + sub crlf { my($self) = shift; return $self->windows_crlf(); |