git-instaweb: respect bindir from Makefile
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 26 Jul 2006 14:32:51 +0000 (16:32 +0200)
committerJunio C Hamano <junkio@cox.net>
Wed, 26 Jul 2006 19:24:19 +0000 (12:24 -0700)
Not everybody installs git to /usr/bin/git.

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

index 3e085dfa6fbabf1bcf758b795f32ea50a40880c2..691e40b7b2786b726250e06fed4e29135c461cee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -575,7 +575,7 @@ git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css
            -e '/@@GITWEB_CGI@@/d' \
            -e '/@@GITWEB_CSS@@/r gitweb/gitweb.css' \
            -e '/@@GITWEB_CSS@@/d' \
-           $@.sh > $@+
+           $@.sh | sed "s|/usr/bin/git|$(bindir)/git|" > $@+
        chmod +x $@+
        mv $@+ $@