diff options
author | Joan Touzet <joant@atypical.net> | 2020-01-17 15:04:40 -0500 |
---|---|---|
committer | Joan Touzet <joant@atypical.net> | 2020-01-17 15:05:01 -0500 |
commit | 5c114d1ab8356a2b6063c08fd61edac8b7cf5b95 (patch) | |
tree | c9cfb24cc301297479c0129f893766c9a5aaf035 | |
parent | 0fc6267e3d702dd99dd24d645b2ba173c44f6ad1 (diff) | |
download | couchdb-5c114d1ab8356a2b6063c08fd61edac8b7cf5b95.tar.gz |
Make sed portable to *BSD in Makefile
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | Makefile.win | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |