diff options
Diffstat (limited to '')
-rwxr-xr-x | build-aux/apply-translations.sh (renamed from scripts/apply-translations.sh) | 0 | ||||
-rwxr-xr-x | build-aux/assert-spelling.sh (renamed from scripts/assert-spelling.sh) | 4 | ||||
-rwxr-xr-x | build-aux/extract-translations.sh (renamed from scripts/extract-translations.sh) | 0 | ||||
-rw-r--r-- | build-aux/spelling/en.txt (renamed from scripts/spelling/en.txt) | 0 | ||||
-rw-r--r-- | build-aux/spelling/eo.txt (renamed from scripts/spelling/eo.txt) | 0 | ||||
-rw-r--r-- | build-aux/spelling/fr.txt (renamed from scripts/spelling/fr.txt) | 0 | ||||
-rw-r--r-- | build-aux/spelling/international.txt (renamed from scripts/spelling/international.txt) | 0 | ||||
-rw-r--r-- | build-aux/spelling/pt.txt (renamed from scripts/spelling/pt.txt) | 0 | ||||
-rwxr-xr-x | build-aux/sync-translations.sh | 5 |
9 files changed, 7 insertions, 2 deletions
diff --git a/scripts/apply-translations.sh b/build-aux/apply-translations.sh index e1b92db..e1b92db 100755 --- a/scripts/apply-translations.sh +++ b/build-aux/apply-translations.sh 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 diff --git a/scripts/extract-translations.sh b/build-aux/extract-translations.sh index 2333865..2333865 100755 --- a/scripts/extract-translations.sh +++ b/build-aux/extract-translations.sh diff --git a/scripts/spelling/en.txt b/build-aux/spelling/en.txt index aff474d..aff474d 100644 --- a/scripts/spelling/en.txt +++ b/build-aux/spelling/en.txt diff --git a/scripts/spelling/eo.txt b/build-aux/spelling/eo.txt index 8629511..8629511 100644 --- a/scripts/spelling/eo.txt +++ b/build-aux/spelling/eo.txt diff --git a/scripts/spelling/fr.txt b/build-aux/spelling/fr.txt index aa09184..aa09184 100644 --- a/scripts/spelling/fr.txt +++ b/build-aux/spelling/fr.txt diff --git a/scripts/spelling/international.txt b/build-aux/spelling/international.txt index b8a8c27..b8a8c27 100644 --- a/scripts/spelling/international.txt +++ b/build-aux/spelling/international.txt diff --git a/scripts/spelling/pt.txt b/build-aux/spelling/pt.txt index c7da56d..c7da56d 100644 --- a/scripts/spelling/pt.txt +++ b/build-aux/spelling/pt.txt diff --git a/build-aux/sync-translations.sh b/build-aux/sync-translations.sh new file mode 100755 index 0000000..504fef3 --- /dev/null +++ b/build-aux/sync-translations.sh @@ -0,0 +1,5 @@ +#!/bin/sh +set -eux + +sh build-aux/extract-translations.sh +sh build-aux/apply-translations.sh |