gitweb: Add GIT favicon, assuming image/png type
PATCH 1/1 gitweb: Add GIT favicon, assuming image/png type
Signed-off-by Jakub Narebski <[email protected]>
---
My first [PATCH] with binary patch.
Makefile | 2 ++ gitweb/git-favicon.png | Bin gitweb/gitweb.perl | 5 +++++ 3 files changed, 7 insertions(+), 0 deletions(-)
Makefile +2 -0
@@ -137,6 +137,7 @@ GITWEB_LIST = GITWEB_HOMETEXT = indextext.html GITWEB_CSS = gitweb.css GITWEB_LOGO = git-logo.png +GITWEB_FAVICON = git-favicon.png export prefix bindir gitexecdir template_dir GIT_PYTHON_DIR
@@ -674,6 +675,7 @@ gitweb/gitweb.cgi: gitweb/gitweb.perl -e 's|++GITWEB_HOMETEXT++|$(GITWEB_HOMETEXT)|g' \ -e 's|++GITWEB_CSS++|$(GITWEB_CSS)|g' \ -e 's|++GITWEB_LOGO++|$(GITWEB_LOGO)|g' \ + -e 's|++GITWEB_FAVICON++|$(GITWEB_FAVICON)|g' \ $< >$@+ chmod +x $@+ mv $@+ $@
gitweb/git-favicon.png new file binary +0 -0
gitweb/gitweb.perl +5 -0
@@ -48,6 +48,8 @@ # URI of default stylesheet our $stylesheet = "++GITWEB_CSS++"; # URI of GIT logo our $logo = "++GITWEB_LOGO++"; +# URI of GIT favicon, assumed to be image/png type +our $favicon = "++GITWEB_FAVICON++"; # source of projects list our $projects_list = "++GITWEB_LIST++";
@@ -1225,6 +1227,9 @@ EOF 'href="%s" type="application/rss+xml"/>'."\n", esc_param($project), href(action=>"rss")); } + if (defined $favicon) { + print qq(<link rel="shortcut icon" href="$favicon" type="image/png"/>\n); + } print "</head>\n" . "<body>\n" .
Signature · 5 lines
1.4.1.1 -- VGER BF report: U 0.5