Hi/2.

Paul Eggert wrote:
> KO Myung-Hun wrote:
>> * gnulib-tool (func_gnulib_dir): Add [A-Za-z]:* case.
> 
> The usual globbing pattern elsewhere in Gnulib is '?:*', not
> '[A-Za-z]:*'.  This is simpler and is just as good in practice.

Fixed.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr

From 6a15c52ce72c5691fdb31ea07c47d42a6c8f7e22 Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <k...@chollian.net>
Date: Sun, 21 Apr 2013 16:57:25 +0900
Subject: [PATCH] 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.
---
 gnulib-tool | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnulib-tool b/gnulib-tool
index f1c91c6..9bdc990 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -392,7 +392,7 @@ func_exit ()
 func_gnulib_dir ()
 {
   case "$progname" in
-    /*) self_abspathname="$progname" ;;
+    /* | ?:*) self_abspathname="$progname" ;;
     */*) self_abspathname=`pwd`/"$progname" ;;
     *)
       # Look in $PATH.
@@ -455,7 +455,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
@@ -703,11 +703,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,[^/]*$,,'`
-- 
1.8.5.2

Reply via email to