aboutsummaryrefslogtreecommitdiff
path: root/scripts/assert-spelling.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-27 15:55:27 -0300
committerEuAndreh <eu@euandre.org>2021-01-27 15:58:51 -0300
commit451eed829916627e9248f1003752b43617a20ff4 (patch)
tree1799faf7932caab2f2b6fb0bccebf06601715dda /scripts/assert-spelling.sh
parentUpdate link to "remembering" (diff)
downloadeuandre.org-451eed829916627e9248f1003752b43617a20ff4.tar.gz
euandre.org-451eed829916627e9248f1003752b43617a20ff4.tar.xz
mv build-aux/ -> aux/ and scripts/
Diffstat (limited to '')
-rwxr-xr-xscripts/assert-spelling.sh (renamed from build-aux/assert-spelling.sh)4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/assert-spelling.sh b/scripts/assert-spelling.sh
index 33da3e3..f0053b4 100755
--- a/build-aux/assert-spelling.sh
+++ b/scripts/assert-spelling.sh
@@ -4,7 +4,7 @@ set -eu
export LANG=C.UTF-8
export JEKYLL_ENV=production
-for DICT in build-aux/spelling/*.txt; do
+for DICT in scripts/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
@@ -19,7 +19,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 build-aux/spelling/international.txt "build-aux/spelling/$l.txt" > "$CURR_DICT"
+ cat scripts/spelling/international.txt "scripts/spelling/$l.txt" > "$CURR_DICT"
hunspell -u3 -H -d "$l" -p "$CURR_DICT" "$f" | tee -a "$OUT"
fi
done