summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorGary V. Vaughan <gary@gnu.org>2013-08-23 15:59:46 +0700
committerGary V. Vaughan <gary@gnu.org>2013-08-23 16:04:36 +0700
commit552c17f7b475b0517d5536182d895a7d8acb9647 (patch)
treec37c1bcd5744f81288591adb8d1a62dbc9f66ea2 /bootstrap
parent5f7f7d9615bf650cf99d581a33b3e18357f79951 (diff)
downloadlibtool-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-xbootstrap4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index 2a70cb5d..df3ca3ae 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"