Use test -h, not test -L.
authorBruno Haible <bruno@clisp.org>
Sun, 26 Aug 2007 10:31:22 +0000 (10:31 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 26 Aug 2007 10:31:22 +0000 (10:31 +0000)
ChangeLog
gnulib-tool

index 27aca80e58cfacde71cfd343f54fd91f669c2f37..cba7b6cdba754c570a458854550db792dc9dcb4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-08-26  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
+
 2007-08-23  Simon Josefsson  <simon@josefsson.org>
 
        * lib/readline.c: Don't include getline.h, the prototype is now
index 7cad5d3f02580ecbd64cbbba5c5105e09f81bad4..1108ce0949f7474c51952ae76fc6f272fae6e6e8 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2007-07-23 22:08:02 $'
+cvsdatestamp='$Date: 2007-08-26 10:31:22 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 nl='
@@ -409,7 +409,7 @@ func_ln_if_changed ()
     echo "usage: func_ln_if_changed SRC DEST" >&2
   fi
   ln_target=`func_readlink "$2"`
-  if test -L "$2" && test "$1" = "$ln_target"; then
+  if test -h "$2" && test "$1" = "$ln_target"; then
     :
   else
     rm -f "$2"