summaryrefslogtreecommitdiff
path: root/gnulib-tool
diff options
context:
space:
mode:
authorKO Myung-Hun <komh78@gmail.com>2014-12-02 12:50:49 +0900
committerEric Blake <eblake@redhat.com>2014-12-02 12:30:54 -0700
commit9a98fdfef2dfcaf855b5bcba873ada3798a2e89c (patch)
treebb270d7673962d3104157d29d9d0f2a66a47bca3 /gnulib-tool
parenta545b5e44bff6e3dca75bc223a8edd885fc964f8 (diff)
downloadgnulib-9a98fdfef2dfcaf855b5bcba873ada3798a2e89c.tar.gz
gnulib-tool: recognize x:* as an absolute path
On OS/2, x:* is an absolute path, too. * gnulib-tool (func_gnulib_dir): Add ?:* case. (func_relconcat): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'gnulib-tool')
-rwxr-xr-xgnulib-tool8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnulib-tool b/gnulib-tool
index 1cab1ed145..2641378037 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -386,7 +386,7 @@ func_exit ()
func_gnulib_dir ()
{
case "$progname" in
- /*) self_abspathname="$progname" ;;
+ /* | ?:*) self_abspathname="$progname" ;;
*/*) self_abspathname=`pwd`/"$progname" ;;
*)
# Look in $PATH.
@@ -449,7 +449,7 @@ func_gnulib_dir ()
linkval=`func_readlink "$self_abspathname"`
test -n "$linkval" || break
case "$linkval" in
- /* ) self_abspathname="$linkval" ;;
+ /* | ?:* ) self_abspathname="$linkval" ;;
* ) self_abspathname=`echo "$self_abspathname" | sed -e 's,/[^/]*$,,'`/"$linkval" ;;
esac
done
@@ -697,11 +697,11 @@ func_relconcat ()
func_ln ()
{
case "$1" in
- /*)
+ /* | ?:*)
ln -s "$1" "$2" ;;
*) # SRC is relative.
case "$2" in
- /*)
+ /* | ?:*)
ln -s "`pwd`/$1" "$2" ;;
*) # DEST is relative too.
ln_destdir=`echo "$2" | sed -e 's,[^/]*$,,'`