changeset 37492:27eff69becc8

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>
author KO Myung-Hun <komh78@gmail.com>
date Tue, 02 Dec 2014 12:50:49 +0900
parents 0806fba611ab
children 73a46cb0a29e
files ChangeLog gnulib-tool
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Dec 02 16:05:10 2014 +0000
+++ b/ChangeLog	Tue Dec 02 12:50:49 2014 +0900
@@ -1,3 +1,9 @@
+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
--- a/gnulib-tool	Tue Dec 02 16:05:10 2014 +0000
+++ b/gnulib-tool	Tue Dec 02 12:50:49 2014 +0900
@@ -386,7 +386,7 @@
 func_gnulib_dir ()
 {
   case "$progname" in
-    /*) self_abspathname="$progname" ;;
+    /* | ?:*) self_abspathname="$progname" ;;
     */*) self_abspathname=`pwd`/"$progname" ;;
     *)
       # Look in $PATH.
@@ -449,7 +449,7 @@
     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_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,[^/]*$,,'`