From: Johannes Schindelin Date: Sun, 2 Jul 2006 09:31:30 +0000 (+0200) Subject: Makefile: replace ugly and unportable sed invocation X-Git-Tag: v1.4.2-rc1~78^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/07002287f3e219a16a948a8a6eca0a41162a491f?hp=--cc Makefile: replace ugly and unportable sed invocation Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- 07002287f3e219a16a948a8a6eca0a41162a491f diff --git a/Makefile b/Makefile index 83d8922295..05a00083e7 100644 --- a/Makefile +++ b/Makefile @@ -551,11 +551,11 @@ git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \ -e 's/@@NO_CURL@@/$(NO_CURL)/g' \ -e 's/@@NO_PYTHON@@/$(NO_PYTHON)/g' \ - $@.sh | sed \ - -e 's|@@GITWEB_CGI@@|#!$(PERL_PATH_SQ)|; T; r gitweb/gitweb.cgi' \ - | sed \ - -e 's|@@GITWEB_CSS@@||; T; r gitweb/gitweb.css' \ - > $@+ + -e '/@@GITWEB_CGI@@/rgitweb/gitweb.cgi' \ + -e '/@@GITWEB_CGI@@/d' \ + -e '/@@GITWEB_CSS@@/rgitweb/gitweb.css' \ + -e '/@@GITWEB_CSS@@/d' \ + $@.sh > $@+ chmod +x $@+ mv $@+ $@