alexkarle.com

Source for alexkarle.com
git clone git://git.alexkarle.com/alexkarle.com.git
Log | Files | Refs | README | LICENSE

commit f29a2c73673cb241fac1b199a00f5b72d4b0ff84 (patch)
parent 0b29d247dd672837ac767c4f26ce562068c8947d
Author: Alex Karle <alex@alexkarle.com>
Date:   Thu, 22 Apr 2021 00:31:32 -0400

make: Replace multiple sed(1)'s with multiple expressions

Should be more efficient / quicker (less processes to spawn)

Diffstat:
MMakefile | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -30,7 +30,7 @@ jam-tuesday/greatest-hits: $(SETS) jam-tuesday/stats.sh @echo "mandoc $<" $(HIDE)mandoc -Tlint -Werror $< $(HIDE)mandoc -Thtml -O 'man=%N.html;https://man.openbsd.org/%N.%S,style=style.css' $< \ - | sed 's#</head>#<meta name="viewport" content="width=device-width,initial-scale=1">&# ' \ - | sed 's#^<html#& lang="en"#' \ - | sed '/<td class="head-vol">Miscellaneous Information Manual<\/td>/d' \ + | sed -e 's#</head>#<meta name="viewport" content="width=device-width,initial-scale=1">&# ' \ + -e 's#^<html#& lang="en"#' \ + -e '/<td class="head-vol">Miscellaneous Information Manual<\/td>/d' \ > $@