From b4b5cc2624e156d7889b776a3855a3e46a227a05 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Sat, 7 Mar 2026 22:27:04 +0100 Subject: make: Use portable sed argument Closes #428. --- docs/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 43989d6..7af4060 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -29,7 +29,7 @@ _ := $(shell test "$(REVDESC)" = "$$(cat .revdesc 2> /dev/null)" ||\ %.texi: %.org .orgconfig .revdesc @printf "Generating $@\n" @$(EMACS_ORG) $< $(ORG_EVAL) - @sed -i -e 's/“/``/g' -e "s/”/''/g" -e '$$a\' $@ #' + @sed -e 's/“/``/g' -e "s/”/''/g" -e '$$a\' -ix $@ && rm $@x #' %.info: %.texi @printf "Generating $@\n" @@ -52,14 +52,14 @@ HTML_FIXUP_MENU = '/<\/body>/i
<\/div>' %.html: %.texi @printf "Generating $@\n" @$(MAKEINFO) --html --no-split $(MANUAL_HTML_ARGS) $< - @sed -i -e $(HTML_FIXUP_CSS) -e $(HTML_FIXUP_ONLOAD) -e $(HTML_FIXUP_MENU) $@ + @sed -e $(HTML_FIXUP_CSS) -e $(HTML_FIXUP_ONLOAD) -e $(HTML_FIXUP_MENU) -ix $@ && rm $@x %/index.html: %.texi @printf "Generating $(PKG)/*.html\n" @rm -rf $(PKG) @$(MAKEINFO) --html -o $(PKG)/ $(MANUAL_HTML_ARGS) $< @for f in $$(find $(PKG) -name '*.html') ; do \ - sed -i -e $(HTML_FIXUP_CSS) -e $(HTML_FIXUP_ONLOAD) -e $(HTML_FIXUP_MENU) $$f ; \ + sed -e $(HTML_FIXUP_CSS) -e $(HTML_FIXUP_ONLOAD) -e $(HTML_FIXUP_MENU) -ix $$f && rm $${f}x ; \ done %.pdf: %.texi -- cgit v1.0