From e80abf05697c5615cfe85425fc36c971fbfe660b Mon Sep 17 00:00:00 2001 From: Rafael Laboissière Date: Sat, 6 Sep 2025 20:41:16 +0200 Subject: Do global substitutions in sed --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index adf9a40..4398036 100644 --- a/Makefile +++ b/Makefile @@ -27,12 +27,12 @@ install-www: build-stamp sudo service apache2 restart %: %.in - sed -e 's|@WWWHOST@|$(WWWHOST)|;' \ - -e 's|@WWWDIR@|$(WWWDIR)|;' \ - -e 's|@INDEX@|$(INDEX)|;' \ - -e 's|@GPGKEY@|$(GPGKEY)|;' \ - -e 's|@TODAY@|$(TODAY)|;' \ - -e 's|@DISTRIB@|$(DISTRIB)|;' $< > $@ + sed -e 's|@WWWHOST@|$(WWWHOST)|g;' \ + -e 's|@WWWDIR@|$(WWWDIR)|g;' \ + -e 's|@INDEX@|$(INDEX)|g;' \ + -e 's|@GPGKEY@|$(GPGKEY)|g;' \ + -e 's|@TODAY@|$(TODAY)|g;' \ + -e 's|@DISTRIB@|$(DISTRIB)|g;' $< > $@ .PHONY: clean clean: -- cgit v1.2.3