Hello,
  Autoconf has recently added a tiny optimization to the expr
implementation of dirname.  I think that the copy in lib/install-sh
could be synchronised.  Patch attached.

Have a nice day,
        Stepan
2006-04-25  Stepan Kasal  <[EMAIL PROTECTED]>

        * lib/install-sh: Simplify the expr implementation of dirname.

Index: lib/install-sh
===================================================================
RCS file: /cvs/automake/automake/lib/install-sh,v
retrieving revision 1.29
diff -u -r1.29 install-sh
--- lib/install-sh      12 Jan 2006 21:11:14 -0000      1.29
+++ lib/install-sh      25 Apr 2006 07:34:37 -0000
@@ -230,8 +230,7 @@
        expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
             X"$dst" : 'X\(//\)[^/]' \| \
             X"$dst" : 'X\(//\)$' \| \
-            X"$dst" : 'X\(/\)' \| \
-            .       : '\(.\)' 2>/dev/null ||
+            X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
        echo X"$dst" |
            sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   s//\1/

Reply via email to