logo

blog

My website can't be that messy, right? git clone https://anongit.hacktivis.me/git/blog.git/
commit: 9ab5f46632369e161ea759ff23871d71a1a51449
parent 817905608aab35970f3c6185dbd7c727b32f3ef3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  3 Mar 2025 01:54:43 +0100

build.ninja: Add gzip compression

Diffstat:

Mbuild.ninja8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/build.ninja b/build.ninja @@ -22,6 +22,10 @@ rule dot rule brotli command = brotli -k -f -Z -o $out $in && touch $out +rule gzip + # no -o in gzip/pigz so have to use `-c … > $out` + command = gzip -k -f --best -c $in > $out && touch $out + rule colorscheme command = css/colorscheme.sh <$in >$out @@ -29,8 +33,10 @@ include config.ninja build bookmarks.html: xslt bookmarks.xsl bookmarks.xbel | templates/head.xml templates/en/nav.xml templates/en/footer.shtml build bookmarks.html.br: brotli bookmarks.html +build bookmarks.html.gz: gzip bookmarks.html build bookmarks.atom: xslt bookmarks.atom.xsl bookmarks.xbel build bookmarks.atom.br: brotli bookmarks.atom +build bookmarks.atom.gz: gzip bookmarks.atom build feed.atom: xinclude feed.atom.in build atom.xsl: xinclude atom.xsl.in @@ -41,8 +47,10 @@ build templates/en/nav.xml: xslt templates/en/nav.xml.in | templates/en/nav.xsl build 404.xhtml: xinclude 404.xhtml.in | templates/head.xml templates/en/nav.xml templates/en/footer.shtml images/deadlink.svg build 404.xhtml.br: brotli 404.xhtml +build 404.xhtml.gz: gzip 404.xhtml build animelist.xhtml: xinclude animelist.xhtml.in | templates/head.xml templates/en/nav.xml templates/en/footer.shtml build animelist.xhtml.br: brotli animelist.xhtml +build animelist.xhtml.gz: gzip animelist.xhtml build projects/index.xhtml: xinclude projects/index.in.xhtml | templates/head.xml templates/en/nav.xml templates/en/footer.shtml build images/linux-audio-output.png: dot images/linux-audio-output.dot