diff options
author | EuAndreh <eu@euandre.org> | 2025-04-11 14:50:52 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-04-11 14:53:48 -0300 |
commit | a9d94cabd56c75dc4fe834fbb2498db0235b86c1 (patch) | |
tree | 87d36d12a474784effbbaf5c6b38f8c563b90a58 | |
parent | src/content/: Hoist relative links to variables (diff) | |
download | papo.im-a9d94cabd56c75dc4fe834fbb2498db0235b86c1.tar.gz papo.im-a9d94cabd56c75dc4fe834fbb2498db0235b86c1.tar.xz |
Makefile: Check both link: and image:
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |