From d01c03c6fb58dbc9d43bf525e2a04273ee1a334d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 4 Nov 2020 09:12:10 +0100 Subject: Do not use -i option with sed(1), not in POSIX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9c4e507..731cd31 100644 --- a/Makefile +++ b/Makefile @@ -57,11 +57,10 @@ sha3sum-mcb.c: commands.h %.1: xsum.man u=$$(printf '%s\n' $* | tr a-z A-Z); \ - sed -e 's/xsum/$*/g' -e 's/XSUM/'"$$u"'/g' -e 's/Xsum/$($*)/g' < xsum.man > $@ if test $* = sha3sum; then \ - sed -i 's/^\\# ONLY SHA3: //' $@; \ + sed -e 's/xsum/$*/g' -e 's/XSUM/'"$$u"'/g' -e 's/Xsum/$($*)/g' -e 's/^\\# ONLY SHA3: //' < xsum.man > $@; \ else \ - sed -i '/^\\# ONLY SHA3: /d' $@; \ + sed -e 's/xsum/$*/g' -e 's/XSUM/'"$$u"'/g' -e 's/Xsum/$($*)/g' -e '/^\\# ONLY SHA3: /d' < xsum.man > $@; \ fi commands.h: Makefile -- cgit v1.2.3-70-g09d2