]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gitweb: Add GIT favicon, assuming image/png type
authorJakub Narebski <jnareb@gmail.com>
Mon, 4 Sep 2006 18:32:13 +0000 (20:32 +0200)
committerJunio 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>
Makefile
gitweb/git-favicon.png [new file with mode: 0644]
gitweb/gitweb.perl

index a639cdfcfbd7525637496fbcaa8ced3949cb6e65..7b3114f3aac8f040b2d7f291e62a980e282b722e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -131,6 +131,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
 
@@ -635,6 +636,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 $@+ $@
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 2b40aa11e7a56af788b42238d55258aff1d03b60..313e84295249b25c77c0c8cf93e334e27b2d80ff 100755 (executable)
@@ -48,6 +48,8 @@ our $home_text = "++GITWEB_HOMETEXT++";
 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++";
@@ -1222,6 +1224,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" .