diff options
author | EuAndreh <eu@euandre.org> | 2021-01-23 20:11:44 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-01-23 20:14:58 -0300 |
commit | 0f6839d4462a0ef539323e65cdfd8983dcf5d59c (patch) | |
tree | afbbdfc0555a2fbb7b0a2963ec13a07f29d23b3c /scripts/assert-spelling.sh | |
parent | Remove bundix-gen.sh (diff) | |
download | euandre.org-0f6839d4462a0ef539323e65cdfd8983dcf5d59c.tar.gz euandre.org-0f6839d4462a0ef539323e65cdfd8983dcf5d59c.tar.xz |
mv scripts/* build-aux/
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 |