From: Gary V. Vaughan Date: Fri, 23 Aug 2013 08:59:46 +0000 (+0700) Subject: bootstrap: support OpenBSD sed. X-Git-Tag: v2.4.2.418~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=552c17f7b475b0517d5536182d895a7d8acb9647;p=thirdparty%2Flibtool.git bootstrap: support OpenBSD sed. * gl/build-aux/bootstrap.in (func_insert_if_absent): Work around the problem of OpenBSD sed not supporting '-' as a notation for standard input. * bootstrap: Regenerate. * THANKS: Add Mike Miller. Reported by Mike Miller. Copyright-paperwork-exempt: Yes Signed-off-by: Gary V. Vaughan --- diff --git a/THANKS b/THANKS index d6f915390..f49e5d9d1 100644 --- a/THANKS +++ b/THANKS @@ -148,6 +148,7 @@ Michael Haubenwallner michael.haubenwallner@salomon.at Mike Gorchak mike@malva.ua Mike Frysinger vapier@gentoo.org + Mike Miller mtmiller@ieee.org Nix nix@esperi.org.uk Olaf Lenz olenz@fias.uni-frankfurt.de Olly Betts olly@muscat.co.uk diff --git a/bootstrap b/bootstrap index 2a70cb5d9..df3ca3ae1 100755 --- a/bootstrap +++ b/bootstrap @@ -4384,8 +4384,8 @@ func_insert_if_absent () || func_verbose "inserting '$str' into '$file'" linesold=`func_gitignore_entries "$file" |wc -l` - linesnew=`$bs_echo "$str" \ - |func_gitignore_entries - "$file" |sort -u |wc -l` + linesnew=`{ $bs_echo "$str"; cat "$file"; } \ + |func_gitignore_entries |sort -u |wc -l` test "$linesold" -eq "$linesnew" \ || { sed "1i\\$nl$str$nl" "$file" >"$file"T && mv "$file"T "$file"; } \ || func_permissions_error "$file" diff --git a/gl/build-aux/bootstrap.in b/gl/build-aux/bootstrap.in index ce50d7eb5..74e65175a 100755 --- a/gl/build-aux/bootstrap.in +++ b/gl/build-aux/bootstrap.in @@ -2194,8 +2194,8 @@ func_insert_if_absent () || func_verbose "inserting '$str' into '$file'" linesold=`func_gitignore_entries "$file" |wc -l` - linesnew=`$bs_echo "$str" \ - |func_gitignore_entries - "$file" |sort -u |wc -l` + linesnew=`{ $bs_echo "$str"; cat "$file"; } \ + |func_gitignore_entries |sort -u |wc -l` test "$linesold" -eq "$linesnew" \ || { sed "1i\\$nl$str$nl" "$file" >"$file"T && mv "$file"T "$file"; } \ || func_permissions_error "$file"