aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-11-04 09:12:10 +0100
committerMattias Andrée <maandree@kth.se>2020-11-04 09:12:18 +0100
commitd01c03c6fb58dbc9d43bf525e2a04273ee1a334d (patch)
treea941ffbd4462d96fc8d3c91e7ae98321d076f44a
parentUpdate readme (diff)
downloadsha3sum-d01c03c6fb58dbc9d43bf525e2a04273ee1a334d.tar.gz
sha3sum-d01c03c6fb58dbc9d43bf525e2a04273ee1a334d.tar.bz2
sha3sum-d01c03c6fb58dbc9d43bf525e2a04273ee1a334d.tar.xz
Do not use -i option with sed(1), not in POSIX
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
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