summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile11
-rw-r--r--deps.mk71
-rwxr-xr-xmkdeps.sh1
3 files changed, 82 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d80a6d8..e7318c2 100644
--- a/Makefile
+++ b/Makefile
@@ -289,6 +289,15 @@ check-unit-sorting: src/sort-expected.txt src/sort-given.txt
diff -U10 src/sort-expected.txt src/sort-given.txt
+.SUFFIXES: .updatedat-check
+sources.updatedat-check = $(sources.adoc:.adoc=.updatedat-check)
+$(sources.updatedat-check):
+ . ./$*.conf && if [ -n "$$updatedat_epoch" ] && \
+ [ "$$updatedat_epoch" -le "$$date_epoch" ]; then exit 3; fi
+
+check-unit-updatedat: $(sources.updatedat-check)
+
+
.SUFFIXES: .links-internal-check
sources.links-internal-check = $(sources.adoc:.adoc=.links-internal-check)
$(sources.links-internal-check): $(sources.html)
@@ -302,7 +311,7 @@ check-unit-links-external:
check-unit-links: check-unit-links-internal check-unit-links-external
-check-unit: check-unit-sorting check-unit-links
+check-unit: check-unit-sorting check-unit-updatedat check-unit-links
integration-tests = \
diff --git a/deps.mk b/deps.mk
index 2b42f37..dee7b30 100644
--- a/deps.mk
+++ b/deps.mk
@@ -396,6 +396,77 @@ src/content/podcasts/feed.xml.gz: src/content/podcasts/feed.xml
src/content/screencasts/feed.xml.gz: src/content/screencasts/feed.xml
src/content/tils/feed.xml.gz: src/content/tils/feed.xml
+src/content/about.updatedat-check: src/content/about.conf
+src/content/index.updatedat-check: src/content/index.conf
+src/content/blog/2018/07/17/guix-nixos.updatedat-check: src/content/blog/2018/07/17/guix-nixos.conf
+src/content/blog/2018/08/01/npm-ci-reproducibility.updatedat-check: src/content/blog/2018/08/01/npm-ci-reproducibility.conf
+src/content/blog/2018/12/21/ytdl-subs.updatedat-check: src/content/blog/2018/12/21/ytdl-subs.conf
+src/content/blog/2019/06/02/nixos-stateless-workstation.updatedat-check: src/content/blog/2019/06/02/nixos-stateless-workstation.conf
+src/content/blog/2020/08/10/guix-srht.updatedat-check: src/content/blog/2020/08/10/guix-srht.conf
+src/content/blog/2020/08/31/database-i-wish-i-had.updatedat-check: src/content/blog/2020/08/31/database-i-wish-i-had.conf
+src/content/blog/2020/10/05/cargo2nix.updatedat-check: src/content/blog/2020/10/05/cargo2nix.conf
+src/content/blog/2020/10/05/swift2nix.updatedat-check: src/content/blog/2020/10/05/swift2nix.conf
+src/content/blog/2020/10/19/feature-flags.updatedat-check: src/content/blog/2020/10/19/feature-flags.conf
+src/content/blog/2020/10/20/wrong-interviewing.updatedat-check: src/content/blog/2020/10/20/wrong-interviewing.conf
+src/content/blog/2020/11/07/diy-bugs.updatedat-check: src/content/blog/2020/11/07/diy-bugs.conf
+src/content/blog/2020/11/08/paradigm-shift-review.updatedat-check: src/content/blog/2020/11/08/paradigm-shift-review.conf
+src/content/blog/2020/11/12/database-parsers-trees.updatedat-check: src/content/blog/2020/11/12/database-parsers-trees.conf
+src/content/blog/2020/11/14/local-first-review.updatedat-check: src/content/blog/2020/11/14/local-first-review.conf
+src/content/blog/2021/01/26/remembering-ann.updatedat-check: src/content/blog/2021/01/26/remembering-ann.conf
+src/content/blog/2021/02/17/fallible.updatedat-check: src/content/blog/2021/02/17/fallible.conf
+src/content/blog/2021/04/29/relational-review.updatedat-check: src/content/blog/2021/04/29/relational-review.conf
+src/content/pastebins/2016/04/05/rpn.updatedat-check: src/content/pastebins/2016/04/05/rpn.conf
+src/content/pastebins/2018/07/11/nix-pinning.updatedat-check: src/content/pastebins/2018/07/11/nix-pinning.conf
+src/content/pastebins/2018/07/13/guix-nixos-systemd.updatedat-check: src/content/pastebins/2018/07/13/guix-nixos-systemd.conf
+src/content/pastebins/2018/07/13/guixbuilder-nixos.updatedat-check: src/content/pastebins/2018/07/13/guixbuilder-nixos.conf
+src/content/pastebins/2018/07/13/guixbuilder.updatedat-check: src/content/pastebins/2018/07/13/guixbuilder.conf
+src/content/pastebins/2018/07/13/nix-strpad.updatedat-check: src/content/pastebins/2018/07/13/nix-strpad.conf
+src/content/pastebins/2018/07/25/nix-exps.updatedat-check: src/content/pastebins/2018/07/25/nix-exps.conf
+src/content/pastebins/2018/07/25/nix-showdrv.updatedat-check: src/content/pastebins/2018/07/25/nix-showdrv.conf
+src/content/pastebins/2019/06/08/inconsistent-hash.updatedat-check: src/content/pastebins/2019/06/08/inconsistent-hash.conf
+src/content/pastebins/2019/12/29/raku-tuple-type.updatedat-check: src/content/pastebins/2019/12/29/raku-tuple-type.conf
+src/content/pastebins/2020/01/04/guix-import-failure.updatedat-check: src/content/pastebins/2020/01/04/guix-import-failure.conf
+src/content/pastebins/2020/02/14/guix-shebang.updatedat-check: src/content/pastebins/2020/02/14/guix-shebang.conf
+src/content/pastebins/2020/11/27/guix-build-local.updatedat-check: src/content/pastebins/2020/11/27/guix-build-local.conf
+src/content/pastebins/2020/12/15/guix-pack-fail.updatedat-check: src/content/pastebins/2020/12/15/guix-pack-fail.conf
+src/content/pastebins/2021/04/03/naive-slugify-js.updatedat-check: src/content/pastebins/2021/04/03/naive-slugify-js.conf
+src/content/pastebins/2021/06/08/reading-session-pt1.updatedat-check: src/content/pastebins/2021/06/08/reading-session-pt1.conf
+src/content/pastebins/2021/06/22/curl-wget.updatedat-check: src/content/pastebins/2021/06/22/curl-wget.conf
+src/content/pastebins/2021/08/11/h1-spacing.updatedat-check: src/content/pastebins/2021/08/11/h1-spacing.conf
+src/content/pastebins/2021/09/02/sicp-3-19.updatedat-check: src/content/pastebins/2021/09/02/sicp-3-19.conf
+src/content/pastebins/2021/09/03/sicp-persistent-queue.updatedat-check: src/content/pastebins/2021/09/03/sicp-persistent-queue.conf
+src/content/pastebins/2022/07/14/git-cleanup.updatedat-check: src/content/pastebins/2022/07/14/git-cleanup.conf
+src/content/pastebins/2023/07/22/funcallable-amop.updatedat-check: src/content/pastebins/2023/07/22/funcallable-amop.conf
+src/content/podcasts/2020/12/19/test-entry.updatedat-check: src/content/podcasts/2020/12/19/test-entry.conf
+src/content/screencasts/2021/02/07/autoqemu.updatedat-check: src/content/screencasts/2021/02/07/autoqemu.conf
+src/content/tils/2020/08/12/filename-timestamp.updatedat-check: src/content/tils/2020/08/12/filename-timestamp.conf
+src/content/tils/2020/08/13/code-jekyll.updatedat-check: src/content/tils/2020/08/13/code-jekyll.conf
+src/content/tils/2020/08/14/browse-git.updatedat-check: src/content/tils/2020/08/14/browse-git.conf
+src/content/tils/2020/08/16/git-search.updatedat-check: src/content/tils/2020/08/16/git-search.conf
+src/content/tils/2020/08/28/grep-online.updatedat-check: src/content/tils/2020/08/28/grep-online.conf
+src/content/tils/2020/09/04/cli-email-fun-profit.updatedat-check: src/content/tils/2020/09/04/cli-email-fun-profit.conf
+src/content/tils/2020/09/05/oldschool-pr.updatedat-check: src/content/tils/2020/09/05/oldschool-pr.conf
+src/content/tils/2020/10/11/search-git-history.updatedat-check: src/content/tils/2020/10/11/search-git-history.conf
+src/content/tils/2020/11/08/find-broken-symlink.updatedat-check: src/content/tils/2020/11/08/find-broken-symlink.conf
+src/content/tils/2020/11/12/diy-nix-bash-ci.updatedat-check: src/content/tils/2020/11/12/diy-nix-bash-ci.conf
+src/content/tils/2020/11/12/git-bisect-automation.updatedat-check: src/content/tils/2020/11/12/git-bisect-automation.conf
+src/content/tils/2020/11/12/useful-bashvars.updatedat-check: src/content/tils/2020/11/12/useful-bashvars.conf
+src/content/tils/2020/11/14/gpodder-media.updatedat-check: src/content/tils/2020/11/14/gpodder-media.conf
+src/content/tils/2020/11/30/git-notes-ci.updatedat-check: src/content/tils/2020/11/30/git-notes-ci.conf
+src/content/tils/2020/12/15/shellcheck-repo.updatedat-check: src/content/tils/2020/12/15/shellcheck-repo.conf
+src/content/tils/2020/12/29/svg.updatedat-check: src/content/tils/2020/12/29/svg.conf
+src/content/tils/2021/01/12/curl-awk-emails.updatedat-check: src/content/tils/2021/01/12/curl-awk-emails.conf
+src/content/tils/2021/01/17/posix-shebang.updatedat-check: src/content/tils/2021/01/17/posix-shebang.conf
+src/content/tils/2021/04/24/cl-generic-precedence.updatedat-check: src/content/tils/2021/04/24/cl-generic-precedence.conf
+src/content/tils/2021/04/24/clojure-autocurry.updatedat-check: src/content/tils/2021/04/24/clojure-autocurry.conf
+src/content/tils/2021/04/24/scm-nif.updatedat-check: src/content/tils/2021/04/24/scm-nif.conf
+src/content/tils/2021/07/23/git-tls-gpg.updatedat-check: src/content/tils/2021/07/23/git-tls-gpg.conf
+src/content/tils/2021/08/11/js-bigint-reviver.updatedat-check: src/content/tils/2021/08/11/js-bigint-reviver.conf
+src/content/blog/index.updatedat-check: src/content/blog/index.conf
+src/content/pastebins/index.updatedat-check: src/content/pastebins/index.conf
+src/content/podcasts/index.updatedat-check: src/content/podcasts/index.conf
+src/content/screencasts/index.updatedat-check: src/content/screencasts/index.conf
+src/content/tils/index.updatedat-check: src/content/tils/index.conf
src/content/about.links-internal-check: src/content/about.links
src/content/index.links-internal-check: src/content/index.links
src/content/blog/2018/07/17/guix-nixos.links-internal-check: src/content/blog/2018/07/17/guix-nixos.links
diff --git a/mkdeps.sh b/mkdeps.sh
index 99a3cd7..119b255 100755
--- a/mkdeps.sh
+++ b/mkdeps.sh
@@ -53,6 +53,7 @@ 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'
+files | sed 's/^\(.*\)\.adoc$/\1.updatedat-check:\t\1.conf/'
files | sed 's/^\(.*\)\.adoc$/\1.links-internal-check:\t\1.links/'
files | sed 's/^\(.*\)\.adoc$/\1.caslinks:\t\1.links/'
printf '\n'