commit 3c1a822f60e08f2ad2f9920984b5d7f948367101
parent 467dfeb8f4bf2dd1ddb69e5c9592147acb425aab
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Sat, 20 Jun 2020 02:16:34 +0200

favicon: png to ico

Diffstat:
MMakefile | 6+++---
Mexample_create.sh | 4++--
Afavicon.ico | 0
Dfavicon.png | 0
Mstagit-index.1 | 2+-
Mstagit-index.c | 2+-
Mstagit.1 | 2+-
Mstagit.c | 2+-
8 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile @@ -53,7 +53,7 @@ dist: rm -rf ${NAME}-${VERSION} mkdir -p ${NAME}-${VERSION} cp -f ${MAN1} ${HDR} ${SRC} ${COMPATSRC} ${DOC} \ - Makefile favicon.png logo.png style.css \ + Makefile favicon.ico logo.png style.css \ example_create.sh example_post-receive.sh \ ${NAME}-${VERSION} # make tarball @@ -80,7 +80,7 @@ install: all # installing example files. mkdir -p ${DESTDIR}${DOCPREFIX} cp -f style.css\ - favicon.png\ + favicon.ico\ logo.png\ example_create.sh\ example_post-receive.sh\ @@ -97,7 +97,7 @@ uninstall: # removing example files. rm -f \ ${DESTDIR}${DOCPREFIX}/style.css\ - ${DESTDIR}${DOCPREFIX}/favicon.png\ + ${DESTDIR}${DOCPREFIX}/favicon.ico\ ${DESTDIR}${DOCPREFIX}/logo.png\ ${DESTDIR}${DOCPREFIX}/example_create.sh\ ${DESTDIR}${DOCPREFIX}/example_post-receive.sh\ diff --git a/example_create.sh b/example_create.sh @@ -3,7 +3,7 @@ # - Makes static pages for each repository directory. # # NOTE, things to do manually (once) before running this script: -# - copy style.css, logo.png and favicon.png manually, a style.css example +# - copy style.css, logo.png and favicon.ico manually, a style.css example # is included. # # - write clone url, for example "git://git.codemadness.org/dir" to the "url" @@ -37,7 +37,7 @@ for dir in "${reposdir}/"*/; do ln -sf log.html index.html ln -sf ../style.css style.css ln -sf ../logo.png logo.png - ln -sf ../favicon.png favicon.png + ln -sf ../favicon.ico favicon.ico echo "done" done diff --git a/favicon.ico b/favicon.ico Binary files differ. diff --git a/favicon.png b/favicon.png Binary files differ. diff --git a/stagit-index.1 b/stagit-index.1 @@ -29,7 +29,7 @@ owner of repository .Pp For changing the style of the page you can use the following files: .Bl -tag -width Ds -.It favicon.png +.It favicon.ico favicon image. .It logo.png 32x32 logo. diff --git a/stagit-index.c b/stagit-index.c @@ -68,7 +68,7 @@ writeheader(FILE *fp) "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" "<title>", fp); xmlencode(fp, description, strlen(description)); - fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); + fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.ico\" />\n", relpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); fputs("</head>\n<body>\n", fp); fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n" diff --git a/stagit.1 b/stagit.1 @@ -94,7 +94,7 @@ exists in HEAD a direct link in the menu is made. .Pp For changing the style of the page you can use the following files: .Bl -tag -width Ds -.It favicon.png +.It favicon.ico favicon image. .It logo.png 32x32 logo. diff --git a/stagit.c b/stagit.c @@ -352,7 +352,7 @@ writeheader(FILE *fp, const char *title) if (description[0]) fputs(" - ", fp); xmlencode(fp, description, strlen(description)); - fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); + fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.ico\" />\n", relpath); fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed\" href=\"%satom.xml\" />\n", name, relpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);