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
commitd932cae796d5e81ed5817fe8da9247cd8cee4707 (patch)
treee82b5462ab554ed31b4886243f2b52565e2823b8 /symlink-tree
parent006299d30715eb4caacd7219a59234258a7a4171 (diff)
downloadbinutils-d932cae796d5e81ed5817fe8da9247cd8cee4707.tar.gz
binutils-d932cae796d5e81ed5817fe8da9247cd8cee4707.tar.bz2
binutils-d932cae796d5e81ed5817fe8da9247cd8cee4707.zip
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 8f11c087932..5b18cab9238 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