From 732c133e0d068d8b049cdd837fbac98b91bb31c4 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 7 Sep 2006 04:28:44 -0700 Subject: [PATCH] gitweb has favicon --- Gitweb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Gitweb b/Gitweb index 7eb8ff22f0..585082cd37 100755 --- a/Gitweb +++ b/Gitweb @@ -9,6 +9,7 @@ sed -e ' /^our .projectroot = /s|".*"|"/opt/packrat/playpen/public/in-place/git"| /^our .stylesheet = /s|".*"|"/gitweb.css"| /^our .logo = /s|".*"|"/git-logo.png"| +/^our .favicon = /s|".*"|"/git-favicon.png"| /^our .projects_list = /s|".*"|"/opt/packrat/playpen/public/in-place/git/index/index.aux"| ' gitweb.cgi >gitweb.cgi++ @@ -28,6 +29,14 @@ else differs="s$differs" fi +if test -f "$DEST/git-favicon.png" +then + cmp "$DEST/git-favicon.png" git-favicon.png >/dev/null || + differs="i$differs" +else + differs="i$differs" +fi + case "$differs" in '') echo Up to date. ;; @@ -64,3 +73,10 @@ case "$differs" in cp gitweb.css "$DEST/gitweb.css" ;; esac + +case "$differs" in +*i*) + rm -f "$DEST/git-favicon.png" + cp git-favicon.png "$DEST/git-favicon.png" + ;; +esac -- 2.32.0.93.g670b81a890