From: Bruno Haible Date: Sun, 26 Aug 2007 10:31:22 +0000 (+0000) Subject: Use test -h, not test -L. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eba129a7c621bda4516a9ad1a18e2e795b7932b3;p=pspp Use test -h, not test -L. --- diff --git a/ChangeLog b/ChangeLog index 27aca80e58..cba7b6cdba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-08-26 Bruno Haible + + * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L". + 2007-08-23 Simon Josefsson * lib/readline.c: Don't include getline.h, the prototype is now diff --git a/gnulib-tool b/gnulib-tool index 7cad5d3f02..1108ce0949 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -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"