Mercurial > hg > octave-nkf > gnulib-hg
changeset 9167:a459223799e0
Use test -h, not test -L.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 26 Aug 2007 10:31:22 +0000 |
parents | 266a32af3c1a |
children | 9b8032e2af0c |
files | ChangeLog gnulib-tool |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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 @@ 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"