Mercurial > hg > octave-lyh > gnulib-hg
changeset 7911:548a756cade0
Fix test whether sed is GNU sed supporting --posix.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 21 Jan 2007 20:07:08 +0000 |
parents | 6fdc6bdf5e75 |
children | 57ae1482adc0 |
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-01-21 Bruno Haible <bruno@clisp.org> + + * gnulib-tool: Fix test whether sed is GNU sed supporting --posix. + 2007-01-20 Jim Meyering <jim@meyering.net> * lib/userspec.c (parse_with_separator): If a user or group string
--- a/gnulib-tool +++ b/gnulib-tool @@ -22,7 +22,7 @@ progname=$0 package=gnulib -cvsdatestamp='$Date: 2007-01-17 23:46:34 $' +cvsdatestamp='$Date: 2007-01-21 20:07:09 $' last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'` version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'` nl=' @@ -71,7 +71,7 @@ # However, do this only for gnulib-tool itself, not for the code that # gnulib-tool generates, since we don't want "sed --posix" to leak # into makefiles. -if (alias) > /dev/null 2>&1 && echo | sed --posix d >/dev/null 2>&1; then +if (alias) > /dev/null 2>&1 && echo | sed --posix -e d >/dev/null 2>&1; then alias sed='sed --posix' fi