diff options
author | Gary V. Vaughan <gary@gnu.org> | 2013-08-23 15:59:46 +0700 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2013-08-23 16:04:36 +0700 |
commit | 552c17f7b475b0517d5536182d895a7d8acb9647 (patch) | |
tree | c37c1bcd5744f81288591adb8d1a62dbc9f66ea2 /bootstrap | |
parent | 5f7f7d9615bf650cf99d581a33b3e18357f79951 (diff) | |
download | libtool-552c17f7b475b0517d5536182d895a7d8acb9647.tar.gz |
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 <gary@gnu.org>
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |