git-instaweb: respect bindir from Makefile
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>
Johannes Schindelin committed
Jul 26, 2006 at 16:32 UTC
941ba215fb9fc9e08705e86ea93e0f6f74d0faaf
1 file changed
+1
-1
Makefile
+1
-1
@@ -575,7 +575,7 @@ git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css
575
-e '/@@GITWEB_CGI@@/d' \
576
-e '/@@GITWEB_CSS@@/r gitweb/gitweb.css' \
577
-e '/@@GITWEB_CSS@@/d' \
578
- $@.sh > $@+
578
+ $@.sh | sed "s|/usr/bin/git|$(bindir)/git|" > $@+
579
chmod +x $@+
580
mv $@+ $@
581