Commit 9a98fdfe authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Eric Blake

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: default avatarEric Blake <eblake@redhat.com>
parent a545b5e4
2014-12-02 KO Myung-Hun <komh78@gmail.com>
gnulib-tool: recognize x:* as an absolute path
* gnulib-tool (func_gnulib_dir): Add ?:* case.
(func_relconcat): Likewise.
2014-12-02 Andrei Borzenkov <arvidjaar@gmail.com>
argp: avoid extraneous translation and mem leak with empty pre doc
......@@ -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,[^/]*$,,'`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment