summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-11 14:56:47 -0300
committerEuAndreh <eu@euandre.org>2025-04-11 14:56:47 -0300
commit3d335f23f1bdbbe7162914d208e1142aa1635153 (patch)
tree270c8d477f3b0a65a66384bcf06fb8f77d92600c /Makefile
parentMakefile: Generate a feed per category (diff)
downloadeuandre.org-3d335f23f1bdbbe7162914d208e1142aa1635153.tar.gz
euandre.org-3d335f23f1bdbbe7162914d208e1142aa1635153.tar.xz
Makefile: Check both link: and image:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bf4f4d5..e749e87 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)