summaryrefslogtreecommitdiff
path: root/symlink-tree
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-12-05 10:07:09 +0000
committerNick Clifton <nickc@redhat.com>2001-12-05 10:07:09 +0000
commit26de9292bd626f1d07cc168b7ebd19a323ae94d6 (patch)
tree25fc6e3b560e7d4f6c3ff85dd6170ce21b1e7ca9 /symlink-tree
parenta6cfe310df93cf4c4a2ad56e52c59ee6b8e86bd8 (diff)
downloadbinutils-redhat-26de9292bd626f1d07cc168b7ebd19a323ae94d6.tar.gz
gcc adopts symlink-tree, refer more to libiberty.
symlink-tree: handle DOS-style absolute paths.
Diffstat (limited to 'symlink-tree')
-rwxr-xr-xsymlink-tree4
1 files changed, 2 insertions, 2 deletions
diff --git a/symlink-tree b/symlink-tree
index 8f11c08793..5b18cab923 100755
--- a/symlink-tree
+++ b/symlink-tree
@@ -20,13 +20,13 @@ ignore_additional=". .. CVS"
# If we were invoked with a relative path name, adjust ${prog} to work
# in subdirs.
case ${prog} in
-/*) ;;
+/* | [A-Za-z]:[\\/]*) ;;
*) prog=../${prog} ;;
esac
# Set newsrcdir to something subdirectories can use.
case ${srcdir} in
-/*) newsrcdir=${srcdir} ;;
+/* | [A-Za-z]:[\\/]*) newsrcdir=${srcdir} ;;
*) newsrcdir=../${srcdir} ;;
esac