commit 0adc4a907b5c784f9a8c9d070fb57da1b3eea356
parent 92dbe7e9ac04fcc6fec6b963538d059cdc8202fc
Author: Armaan Bhojwani <me@armaanb.net>
Date: Sun, 7 Mar 2021 09:15:09 -0500
Use minified stylesheet
Diffstat:
2 files changed, 5 insertions(+), 5 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 syntax.css highlight.py \
+ Makefile favicon.png logo.png style.min.css syntax.css highlight.py \
example_create.sh example_post-receive.sh \
${NAME}-${VERSION}
# make tarball
@@ -80,7 +80,7 @@ install: all
for f in ${BIN}; do chmod 755 ${DESTDIR}${PREFIX}/bin/$$f; done
# installing example files.
mkdir -p ${DESTDIR}${DOCPREFIX}
- cp -f style.css\
+ cp -f style.min.css\
syntax.css\
favicon.png\
logo.png\
@@ -99,7 +99,7 @@ uninstall:
for f in ${BIN}; do rm -f ${DESTDIR}${PREFIX}/bin/$$f; done
# removing example files.
rm -f \
- ${DESTDIR}${DOCPREFIX}/style.css\
+ ${DESTDIR}${DOCPREFIX}/style.min.css\
${DESTDIR}${DOCPREFIX}/syntax.css\
${DESTDIR}${DOCPREFIX}/highlight.py\
${DESTDIR}${DOCPREFIX}/favicon.png\
diff --git a/stagit.c b/stagit.c
@@ -378,7 +378,7 @@ writeheader(FILE *fp, const char *title)
fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\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);
+ fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.min.css\" />\n", relpath);
fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%ssyntax.css\" />\n", relpath);
fputs("</head>\n<body>\n<table><tr><td>", fp);
fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>",
@@ -1173,7 +1173,7 @@ main(int argc, char *argv[])
strcpy(cwd, getcwd(cwd, sizeof(cwd)));
cp("/usr/local/share/doc/stagit/syntax.css", strcat(cwd, "/syntax.css"));
strcpy(cwd, getcwd(cwd, sizeof(cwd)));
- cp("/usr/local/share/doc/stagit/style.css", strcat(cwd, "/style.css"));
+ cp("/usr/local/share/doc/stagit/style.min.css", strcat(cwd, "/style.min.css"));
/* strip .git suffix */
if (!(strippedname = strdup(name)))