1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-14 01:32:11 +00:00
seirdy.one/scripts/vnu.sh

17 lines
456 B
Bash
Raw Normal View History

#!/bin/sh
set -e -u
dirname="$(dirname "$0")"
output_dir="$1"
2023-11-15 10:31:06 +00:00
find_files_to_analyze() {
find "$output_dir" -type f -name '*.xhtml' -o -name '*.svg' \
| grep -Ev '(bimi\.svg|search/index\.x?html)$'
}
# files_to_analyze="$(find_files_to_analyze)"
2023-11-15 10:31:06 +00:00
# we skip the BIMI icon (VNU can't handle SVG 1.2) and the search page (it has raw templates).
find_files_to_analyze \
| xargs vnu --stdout --format json --also-check-svg \
| sh "$dirname/filter-vnu.sh"