summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Touzet <joant@atypical.net>2020-01-17 15:04:40 -0500
committerJoan Touzet <joant@atypical.net>2020-01-17 15:05:01 -0500
commit5c114d1ab8356a2b6063c08fd61edac8b7cf5b95 (patch)
treec9cfb24cc301297479c0129f893766c9a5aaf035
parent0fc6267e3d702dd99dd24d645b2ba173c44f6ad1 (diff)
downloadcouchdb-5c114d1ab8356a2b6063c08fd61edac8b7cf5b95.tar.gz
Make sed portable to *BSD in Makefile
-rw-r--r--Makefile2
-rw-r--r--Makefile.win2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 31f17759e..3332e676c 100644
--- a/Makefile
+++ b/Makefile
@@ -140,7 +140,7 @@ couch: config.erl derived set_otp_vsn
# target: set_otp_vsn - ensure that vsn field in OTP app is set appropriately
set_otp_vsn:
- @sed -i '' -e "s/{vsn, git}/${SUB_VSN}/" $(shell find ./src -type f -name \*.app.src)
+ @sed -i$(sed v < /dev/null 2> /dev/null || echo -n " ''") -e "s/{vsn, git}/${SUB_VSN}/" $(shell find ./src -type f -name \*.app.src)
.PHONY: docs
# target: docs - Build documentation
diff --git a/Makefile.win b/Makefile.win
index f1b1226e2..0e944ed84 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -119,7 +119,7 @@ couch: config.erl derived set_otp_vsn
# target: set_otp_vsn - ensure that vsn field in OTP app is set appropriately
set_otp_vsn:
- @sed -i '' -e "s/{vsn, git}/${SUB_VSN}/" $(shell find ./src -type f -name \*.app.src)
+ @sed -i -e "s/{vsn, git}/${SUB_VSN}/" $(shell find ./src -type f -name \*.app.src)
.PHONY: docs
# target: docs - Build documentation