summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5d44cd1)
raw | patch | inline | side by side (parent: 5d44cd1)
author | Jakub Narebski <jnareb@gmail.com> | |
Mon, 4 Sep 2006 18:32:13 +0000 (20:32 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 4 Sep 2006 22:33:04 +0000 (15:33 -0700) |
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile | patch | blob | history | |
gitweb/git-favicon.png | [new file with mode: 0644] | patch | blob |
gitweb/gitweb.perl | patch | blob | history |
diff --git a/Makefile b/Makefile
index a639cdfcfbd7525637496fbcaa8ced3949cb6e65..7b3114f3aac8f040b2d7f291e62a980e282b722e 100644 (file)
--- a/Makefile
+++ b/Makefile
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
-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 $@+ $@
diff --git a/gitweb/git-favicon.png b/gitweb/git-favicon.png
new file mode 100644 (file)
index 0000000..de637c0
Binary files /dev/null and b/gitweb/git-favicon.png differ
index 0000000..de637c0
Binary files /dev/null and b/gitweb/git-favicon.png differ
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 2b40aa11e7a56af788b42238d55258aff1d03b60..313e84295249b25c77c0c8cf93e334e27b2d80ff 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
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++";
'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" .