From 3d335f23f1bdbbe7162914d208e1142aa1635153 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 11 Apr 2025 14:56:47 -0300 Subject: Makefile: Check both link: and image: --- Makefile | 5 +++-- 1 file 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) -- cgit v1.2.3