summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--deps.mk71
-rwxr-xr-xmkdeps.sh1
3 files changed, 79 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 77c6fc3..f1747f0 100644
--- a/Makefile
+++ b/Makefile
@@ -67,6 +67,7 @@ sources.adoc = $(articles.adoc) $(listings.adoc) $(pages.adoc)
sources.htmlbody = $(sources.adoc:.adoc=.htmlbody)
sources.html = $(sources.adoc:.adoc=.html)
sources.snippets = $(sources.adoc:.adoc=.snippets)
+sources.snippets.gz = $(sources.adoc:.adoc=.snippets.gz)
sources.conf = $(sources.adoc:.adoc=.conf)
articles.indexentry = $(articles.adoc:.adoc=.indexentry)
articles.feedentry = $(articles.adoc:.adoc=.feedentry)
@@ -118,6 +119,7 @@ derived-assets = \
$(contents.gz) \
$(sources.htmlbody) \
$(sources.snippets) \
+ $(sources.snippets.gz) \
$(sources.conf) \
src/global.conf \
$(listings.htmlheader) \
@@ -135,6 +137,7 @@ derived-assets = \
side-assets = \
src/collections/*/*/*/*/*.html.*.txt \
+ src/collections/*/*/*/*/*.html.*.txt.gz \
src/collections/*/index.html.*.txt \
src/collections/*/*.sortdata \
src/pages/*/*.html.*.txt \
@@ -165,6 +168,10 @@ $(contents.gz):
gzip -9fk $*
touch $@
+$(sources.snippets.gz):
+ if [ -s $* ]; then gzip -9fk `cat $*`; fi
+ sed 's/$$/.gz/' $* > $@
+
src/content/public.asc:
gpg --export --armour "`jq -r '.email' < meta.json`" > $@
diff --git a/deps.mk b/deps.mk
index ade6953..4b978d8 100644
--- a/deps.mk
+++ b/deps.mk
@@ -319,6 +319,77 @@ src/content/pastebins/index.html.gz: src/content/pastebins/index.html
src/content/podcasts/index.html.gz: src/content/podcasts/index.html
src/content/screencasts/index.html.gz: src/content/screencasts/index.html
src/content/tils/index.html.gz: src/content/tils/index.html
+src/content/about.snippets.gz: src/content/about.snippets
+src/content/index.snippets.gz: src/content/index.snippets
+src/content/blog/2018/07/17/guix-nixos.snippets.gz: src/content/blog/2018/07/17/guix-nixos.snippets
+src/content/blog/2018/08/01/npm-ci-reproducibility.snippets.gz: src/content/blog/2018/08/01/npm-ci-reproducibility.snippets
+src/content/blog/2018/12/21/ytdl-subs.snippets.gz: src/content/blog/2018/12/21/ytdl-subs.snippets
+src/content/blog/2019/06/02/nixos-stateless-workstation.snippets.gz: src/content/blog/2019/06/02/nixos-stateless-workstation.snippets
+src/content/blog/2020/08/10/guix-srht.snippets.gz: src/content/blog/2020/08/10/guix-srht.snippets
+src/content/blog/2020/08/31/database-i-with-i-had.snippets.gz: src/content/blog/2020/08/31/database-i-with-i-had.snippets
+src/content/blog/2020/10/05/cargo2nix.snippets.gz: src/content/blog/2020/10/05/cargo2nix.snippets
+src/content/blog/2020/10/05/swift2nix.snippets.gz: src/content/blog/2020/10/05/swift2nix.snippets
+src/content/blog/2020/10/19/feature-flags.snippets.gz: src/content/blog/2020/10/19/feature-flags.snippets
+src/content/blog/2020/10/20/wrong-interviewing.snippets.gz: src/content/blog/2020/10/20/wrong-interviewing.snippets
+src/content/blog/2020/11/07/diy-bugs.snippets.gz: src/content/blog/2020/11/07/diy-bugs.snippets
+src/content/blog/2020/11/08/paradigm-shift-review.snippets.gz: src/content/blog/2020/11/08/paradigm-shift-review.snippets
+src/content/blog/2020/11/12/database-parsers-trees.snippets.gz: src/content/blog/2020/11/12/database-parsers-trees.snippets
+src/content/blog/2020/11/14/local-first-review.snippets.gz: src/content/blog/2020/11/14/local-first-review.snippets
+src/content/blog/2021/01/26/remembering-ann.snippets.gz: src/content/blog/2021/01/26/remembering-ann.snippets
+src/content/blog/2021/02/17/fallible.snippets.gz: src/content/blog/2021/02/17/fallible.snippets
+src/content/blog/2021/04/29/relational-review.snippets.gz: src/content/blog/2021/04/29/relational-review.snippets
+src/content/pastebins/2016/04/05/rpn.snippets.gz: src/content/pastebins/2016/04/05/rpn.snippets
+src/content/pastebins/2018/07/11/nix-pinning.snippets.gz: src/content/pastebins/2018/07/11/nix-pinning.snippets
+src/content/pastebins/2018/07/13/guix-nixos-systemd.snippets.gz: src/content/pastebins/2018/07/13/guix-nixos-systemd.snippets
+src/content/pastebins/2018/07/13/guixbuilder-nixos.snippets.gz: src/content/pastebins/2018/07/13/guixbuilder-nixos.snippets
+src/content/pastebins/2018/07/13/guixbuilder.snippets.gz: src/content/pastebins/2018/07/13/guixbuilder.snippets
+src/content/pastebins/2018/07/13/nix-strpad.snippets.gz: src/content/pastebins/2018/07/13/nix-strpad.snippets
+src/content/pastebins/2018/07/25/nix-exps.snippets.gz: src/content/pastebins/2018/07/25/nix-exps.snippets
+src/content/pastebins/2018/07/25/nix-showdrv.snippets.gz: src/content/pastebins/2018/07/25/nix-showdrv.snippets
+src/content/pastebins/2019/06/08/inconsistent-hash.snippets.gz: src/content/pastebins/2019/06/08/inconsistent-hash.snippets
+src/content/pastebins/2019/12/29/raku-tuple-type.snippets.gz: src/content/pastebins/2019/12/29/raku-tuple-type.snippets
+src/content/pastebins/2020/01/04/guix-import-failure.snippets.gz: src/content/pastebins/2020/01/04/guix-import-failure.snippets
+src/content/pastebins/2020/02/14/guix-shebang.snippets.gz: src/content/pastebins/2020/02/14/guix-shebang.snippets
+src/content/pastebins/2020/11/27/guix-build-local.snippets.gz: src/content/pastebins/2020/11/27/guix-build-local.snippets
+src/content/pastebins/2020/12/15/guix-pack-fail.snippets.gz: src/content/pastebins/2020/12/15/guix-pack-fail.snippets
+src/content/pastebins/2021/04/03/naive-slugify-js.snippets.gz: src/content/pastebins/2021/04/03/naive-slugify-js.snippets
+src/content/pastebins/2021/06/08/reading-session-pt1.snippets.gz: src/content/pastebins/2021/06/08/reading-session-pt1.snippets
+src/content/pastebins/2021/06/22/curl-wget.snippets.gz: src/content/pastebins/2021/06/22/curl-wget.snippets
+src/content/pastebins/2021/08/11/h1-spacing.snippets.gz: src/content/pastebins/2021/08/11/h1-spacing.snippets
+src/content/pastebins/2021/09/02/sicp-3-19.snippets.gz: src/content/pastebins/2021/09/02/sicp-3-19.snippets
+src/content/pastebins/2021/09/03/sicp-persistent-queue.snippets.gz: src/content/pastebins/2021/09/03/sicp-persistent-queue.snippets
+src/content/pastebins/2022/07/14/git-cleanup.snippets.gz: src/content/pastebins/2022/07/14/git-cleanup.snippets
+src/content/pastebins/2023/07/22/funcallable-amop.snippets.gz: src/content/pastebins/2023/07/22/funcallable-amop.snippets
+src/content/podcasts/2020/12/19/test-entry.snippets.gz: src/content/podcasts/2020/12/19/test-entry.snippets
+src/content/screencasts/2021/02/07/autoqemu.snippets.gz: src/content/screencasts/2021/02/07/autoqemu.snippets
+src/content/tils/2020/08/12/filename-timestamp.snippets.gz: src/content/tils/2020/08/12/filename-timestamp.snippets
+src/content/tils/2020/08/13/code-jekyll.snippets.gz: src/content/tils/2020/08/13/code-jekyll.snippets
+src/content/tils/2020/08/14/browse-git.snippets.gz: src/content/tils/2020/08/14/browse-git.snippets
+src/content/tils/2020/08/16/git-search.snippets.gz: src/content/tils/2020/08/16/git-search.snippets
+src/content/tils/2020/08/28/grep-online.snippets.gz: src/content/tils/2020/08/28/grep-online.snippets
+src/content/tils/2020/09/04/email-cli-fun-profit.snippets.gz: src/content/tils/2020/09/04/email-cli-fun-profit.snippets
+src/content/tils/2020/09/05/oldschool-pr.snippets.gz: src/content/tils/2020/09/05/oldschool-pr.snippets
+src/content/tils/2020/10/11/search-git-history.snippets.gz: src/content/tils/2020/10/11/search-git-history.snippets
+src/content/tils/2020/11/08/find-broken-symlink.snippets.gz: src/content/tils/2020/11/08/find-broken-symlink.snippets
+src/content/tils/2020/11/12/diy-nix-bash-ci.snippets.gz: src/content/tils/2020/11/12/diy-nix-bash-ci.snippets
+src/content/tils/2020/11/12/git-bisect-automation.snippets.gz: src/content/tils/2020/11/12/git-bisect-automation.snippets
+src/content/tils/2020/11/12/useful-bashvars.snippets.gz: src/content/tils/2020/11/12/useful-bashvars.snippets
+src/content/tils/2020/11/14/gpodder-media.snippets.gz: src/content/tils/2020/11/14/gpodder-media.snippets
+src/content/tils/2020/11/30/git-notes-ci.snippets.gz: src/content/tils/2020/11/30/git-notes-ci.snippets
+src/content/tils/2020/12/15/shellcheck-repo.snippets.gz: src/content/tils/2020/12/15/shellcheck-repo.snippets
+src/content/tils/2020/12/29/svg.snippets.gz: src/content/tils/2020/12/29/svg.snippets
+src/content/tils/2021/01/12/curl-awk-emails.snippets.gz: src/content/tils/2021/01/12/curl-awk-emails.snippets
+src/content/tils/2021/01/17/posix-shebang.snippets.gz: src/content/tils/2021/01/17/posix-shebang.snippets
+src/content/tils/2021/04/24/cl-generic-precedence.snippets.gz: src/content/tils/2021/04/24/cl-generic-precedence.snippets
+src/content/tils/2021/04/24/clojure-autocurry.snippets.gz: src/content/tils/2021/04/24/clojure-autocurry.snippets
+src/content/tils/2021/04/24/scm-nif.snippets.gz: src/content/tils/2021/04/24/scm-nif.snippets
+src/content/tils/2021/07/23/git-tls-gpg.snippets.gz: src/content/tils/2021/07/23/git-tls-gpg.snippets
+src/content/tils/2021/08/11/js-bigint-reviver.snippets.gz: src/content/tils/2021/08/11/js-bigint-reviver.snippets
+src/content/blog/index.snippets.gz: src/content/blog/index.snippets
+src/content/pastebins/index.snippets.gz: src/content/pastebins/index.snippets
+src/content/podcasts/index.snippets.gz: src/content/podcasts/index.snippets
+src/content/screencasts/index.snippets.gz: src/content/screencasts/index.snippets
+src/content/tils/index.snippets.gz: src/content/tils/index.snippets
src/content/blog/feed.xml.gz: src/content/blog/feed.xml
src/content/pastebins/feed.xml.gz: src/content/pastebins/feed.xml
src/content/podcasts/feed.xml.gz: src/content/podcasts/feed.xml
diff --git a/mkdeps.sh b/mkdeps.sh
index 388746c..7698d7f 100755
--- a/mkdeps.sh
+++ b/mkdeps.sh
@@ -49,6 +49,7 @@ files | sed 's/^\(.*\)\.adoc$/\1.html:\t\1.conf\t\1.htmlbody/'
printf '\n'
files | sed 's/^\(.*\)\.adoc$/\1.html.gz:\t\1.html/'
+files | sed 's/^\(.*\)\.adoc$/\1.snippets.gz:\t\1.snippets/'
listings | sed 's|^\(.*\)/index\.adoc$|\1/feed.xml.gz:\t\1/feed.xml|'
printf '\n'