summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-11 14:50:52 -0300
committerEuAndreh <eu@euandre.org>2025-04-11 14:53:48 -0300
commita9d94cabd56c75dc4fe834fbb2498db0235b86c1 (patch)
tree87d36d12a474784effbbaf5c6b38f8c563b90a58
parentsrc/content/: Hoist relative links to variables (diff)
downloadpapo.im-a9d94cabd56c75dc4fe834fbb2498db0235b86c1.tar.gz
papo.im-a9d94cabd56c75dc4fe834fbb2498db0235b86c1.tar.xz
Makefile: Check both link: and image:
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b9a6861..9284186 100644
--- a/Makefile
+++ b/Makefile
@@ -65,7 +65,7 @@ PUBURL = public.asc
mkwb links $< > $@
.links.caslinks:
- grep -v '^link:' $< | xargs -I_ sh -c '\
+ grep -Ev '^(link|image):' $< | xargs -I_ sh -c '\
printf "%s\n" "_" | sha256sum | \
printf "%s\t%s\n" "`cut -d" " -f1`" "_"' > $@
@@ -325,7 +325,8 @@ 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)
- grep '^link:' $*.links | cut -d: -f2- | xargs -I% test -e $(*D)/%
+ grep -E '^(link|image):' $*.links | cut -d: -f2- | \
+ xargs -I% test -e $(*D)/%
check-unit-links-internal: $(sources.links-internal-check)