summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-07-02 09:31:30 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-02 18:04:50 (GMT)
commit07002287f3e219a16a948a8a6eca0a41162a491f (patch)
tree01fe3cc1c6b42ccf0e04cf45d8f153efc9de7003 /Makefile
parenta51d37c1df66386a4d9b7559d64a39241d4e47da (diff)
downloadgit-07002287f3e219a16a948a8a6eca0a41162a491f.zip
git-07002287f3e219a16a948a8a6eca0a41162a491f.tar.gz
git-07002287f3e219a16a948a8a6eca0a41162a491f.tar.bz2
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 83d8922..05a0008 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 $@+ $@