@matheusbsbs / matheus-bagliano / commits / 07002287f3
Fork 0

Makefile: replace ugly and unportable sed invocation

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>

Johannes Schindelin committed Jul 2, 2006 at 11:31 UTC 07002287f3e219a16a948a8a6eca0a41162a491f
1 file changed +5 -5
Makefile
+5 -5
@@ -551,11 +551,11 @@ git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css
551 -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
552 -e 's/@@NO_CURL@@/$(NO_CURL)/g' \
553 -e 's/@@NO_PYTHON@@/$(NO_PYTHON)/g' \
554 - $@.sh | sed \
555 - -e 's|@@GITWEB_CGI@@|#!$(PERL_PATH_SQ)|; T; r gitweb/gitweb.cgi' \
556 - | sed \
557 - -e 's|@@GITWEB_CSS@@||; T; r gitweb/gitweb.css' \
558 - > $@+
554 + -e '/@@GITWEB_CGI@@/rgitweb/gitweb.cgi' \
555 + -e '/@@GITWEB_CGI@@/d' \
556 + -e '/@@GITWEB_CSS@@/rgitweb/gitweb.css' \
557 + -e '/@@GITWEB_CSS@@/d' \
558 + $@.sh > $@+
559 chmod +x $@+
560 mv $@+ $@
561