diff options
Diffstat (limited to '')
-rwxr-xr-x | build-aux/assert-spelling.sh (renamed from scripts/assert-spelling.sh) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/assert-spelling.sh b/build-aux/assert-spelling.sh index 401a852..0503a4b 100755 --- a/scripts/assert-spelling.sh +++ b/build-aux/assert-spelling.sh @@ -3,7 +3,7 @@ set -eu export LANG=C.UTF-8 -for DICT in scripts/spelling/*.txt; do +for DICT in build-aux/spelling/*.txt; do sort "$DICT" | diff - "$DICT" || { echo "The $DICT dictionary is unsorted. To fix it, run:" >&2 echo " LANG=C.UTF-8 sort $DICT | sponge $DICT" >&2 @@ -18,7 +18,7 @@ for f in $(find _site -type f -name '*.html'); do if ! echo "$f" | grep -qE '(/vendor/|TODOs.html)'; then l="$(head -n2 "$f" | tail -n1 | cut -d\" -f2)" CURR_DICT="$(mktemp)" - cat scripts/spelling/international.txt "scripts/spelling/$l.txt" > "$CURR_DICT" + cat build-aux/spelling/international.txt "build-aux/spelling/$l.txt" > "$CURR_DICT" hunspell -u3 -H -d "$l" -p "$CURR_DICT" "$f" | tee -a "$OUT" fi done |