From: Armaan Bhojwani Date: Sun, 7 Mar 2021 14:15:09 +0000 (-0500) Subject: Use minified stylesheet X-Git-Url: https://git.armaanb.net/?p=stagit.git;a=commitdiff_plain;h=0adc4a907b5c784f9a8c9d070fb57da1b3eea356 Use minified stylesheet --- diff --git a/Makefile b/Makefile index 1effc07..905d3bd 100644 --- 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 index 2d00203..daa81fc 100644 --- a/stagit.c +++ b/stagit.c @@ -378,7 +378,7 @@ writeheader(FILE *fp, const char *title) fprintf(fp, "\n\n", relpath); fprintf(fp, "\n", name, relpath); - fprintf(fp, "\n", relpath); + fprintf(fp, "\n", relpath); fprintf(fp, "\n", relpath); fputs("\n\n
", fp); fprintf(fp, "\"\"", @@ -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)))