X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ylwrap;h=2288ccde3ac14b2e968b92d2260c130e8becebee;hb=49a2cef8b79ddf978c7dd9f78a1ebee20909f5f8;hp=2d0f97ff4f821d166396a6a2c46d0cefa577b966;hpb=c5f3dafb2941f14fb2a9b8fa91e72ba377211c0e;p=deliverable%2Fbinutils-gdb.git diff --git a/ylwrap b/ylwrap index 2d0f97ff4f..2288ccde3a 100755 --- a/ylwrap +++ b/ylwrap @@ -31,7 +31,7 @@ prog="$1" shift # Make any relative path in $prog absolute. case "$prog" in - /*) ;; + /* | [A-Za-z]:\\*) ;; */*) prog="`pwd`/$prog" ;; esac @@ -75,7 +75,7 @@ mkdir $dirname || exit 1 cd $dirname case "$input" in - /*) + /* | [A-Za-z]:\\*) # Absolute path; do nothing. ;; *) @@ -95,7 +95,7 @@ if test $status -eq 0; then # If $2 is an absolute path name, then just use that, # otherwise prepend `../'. case "$2" in - /*) target="$2";; + /* | [A-Za-z]:\\*) target="$2";; *) target="../$2";; esac mv "$1" "$target" || status=$?