aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYasushi SHOJI <yashi@atmark-techno.com>2006-08-15 07:50:49 +0900
committerJunio C Hamano <junkio@cox.net>2006-08-14 18:09:33 -0700
commit2de21fac9842650fceb3db68f15711e38fabc3c8 (patch)
tree2b74eaabec1f70f451c4e310b6876d5df30368e3 /Makefile
parent4a4a1a53d1c4a272d4cf0d53116896d057174671 (diff)
downloadgit-2de21fac9842650fceb3db68f15711e38fabc3c8.tar.gz
git-2de21fac9842650fceb3db68f15711e38fabc3c8.tar.xz
gitweb: configurable home link string
I've always found difficult to figure out git URL for clone from gitweb URL because git:// and http:// are different on many site including kernel.org. I've found this enhancement at http://dev.laptop.org/git when I was on git channel, and thought that it'd be nice if all public gitweb site show it's git URL on its page. This patch allow us to change the home link string. The current default is "projects" as we all see on gitweb now. ie. kernel.org might set this variable to "git://git.kernel.org/pub/scm/" Signed-off-by: Yasushi SHOJI <yashi@atmark-techno.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a538710ed..b363f50d4 100644
--- a/Makefile
+++ b/Makefile
@@ -123,6 +123,7 @@ GIT_PYTHON_DIR = $(prefix)/share/git-core/python
# default configuration for gitweb
GITWEB_CONFIG = gitweb_config.perl
+GITWEB_HOME_LINK_STR = projects
GITWEB_SITENAME =
GITWEB_PROJECTROOT = /pub/git
GITWEB_LIST =
@@ -617,6 +618,7 @@ gitweb/gitweb.cgi: gitweb/gitweb.perl
-e 's|++GIT_VERSION++|$(GIT_VERSION)|g' \
-e 's|++GIT_BINDIR++|$(bindir)|g' \
-e 's|++GITWEB_CONFIG++|$(GITWEB_CONFIG)|g' \
+ -e 's|++GITWEB_HOME_LINK_STR++|$(GITWEB_HOME_LINK_STR)|g' \
-e 's|++GITWEB_SITENAME++|$(GITWEB_SITENAME)|g' \
-e 's|++GITWEB_PROJECTROOT++|$(GITWEB_PROJECTROOT)|g' \
-e 's|++GITWEB_LIST++|$(GITWEB_LIST)|g' \