]> git.armaanb.net Git - stagit.git/commitdiff
Use minified stylesheet
authorArmaan Bhojwani <me@armaanb.net>
Sun, 7 Mar 2021 14:15:09 +0000 (09:15 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 7 Mar 2021 14:15:09 +0000 (09:15 -0500)
Makefile
stagit.c

index 1effc071d0e21c26730dd007b9dea17a0b76bfca..905d3bd3e5fd397e7c5b3bb7f9b29aa06354982a 100644 (file)
--- 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\
index 2d002032cd7770792de935137b4ccf4bb24372c5..daa81fc67d36c1f54909aefea1024c0aa710c3b8 100644 (file)
--- 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)))