@matheusbsbs / matheus-bagliano / commits / 732c133e0d
Fork 0

gitweb has favicon

Junio C Hamano committed Sep 7, 2006 at 04:28 UTC 732c133e0d068d8b049cdd837fbac98b91bb31c4
1 file changed +16
Gitweb
+16
@@ -9,6 +9,7 @@ sed -e '
9 /^our .projectroot = /s|".*"|"/opt/packrat/playpen/public/in-place/git"|
10 /^our .stylesheet = /s|".*"|"/gitweb.css"|
11 /^our .logo = /s|".*"|"/git-logo.png"|
12 +/^our .favicon = /s|".*"|"/git-favicon.png"|
13 /^our .projects_list = /s|".*"|"/opt/packrat/playpen/public/in-place/git/index/index.aux"|
14 ' gitweb.cgi >gitweb.cgi++
15
@@ -28,6 +29,14 @@ else
29 differs="s$differs"
30 fi
31
32 +if test -f "$DEST/git-favicon.png"
33 +then
34 + cmp "$DEST/git-favicon.png" git-favicon.png >/dev/null ||
35 + differs="i$differs"
36 +else
37 + differs="i$differs"
38 +fi
39 +
40 case "$differs" in
41 '')
42 echo Up to date. ;;
@@ -64,3 +73,10 @@ case "$differs" in
73 cp gitweb.css "$DEST/gitweb.css"
74 ;;
75 esac
76 +
77 +case "$differs" in
78 +*i*)
79 + rm -f "$DEST/git-favicon.png"
80 + cp git-favicon.png "$DEST/git-favicon.png"
81 + ;;
82 +esac