diff options
author | Mattias Andrée <maandree@kth.se> | 2020-11-04 09:12:10 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-11-04 09:12:18 +0100 |
commit | d01c03c6fb58dbc9d43bf525e2a04273ee1a334d (patch) | |
tree | a941ffbd4462d96fc8d3c91e7ae98321d076f44a /Makefile | |
parent | Update readme (diff) | |
download | sha3sum-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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |