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 | |
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/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 | ||||
-rwxr-xr-x | scripts/sync-translations.sh | 5 | ||||
-rwxr-xr-x | tests.sh | 5 |
11 files changed, 9 insertions, 10 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 diff --git a/scripts/sync-translations.sh b/scripts/sync-translations.sh deleted file mode 100755 index 20e2a78..0000000 --- a/scripts/sync-translations.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -set -eux - -sh scripts/extract-translations.sh -sh scripts/apply-translations.sh @@ -1,8 +1,7 @@ #!/bin/sh set -eux -sh scripts/assert-spelling.sh +sh build-aux/assert-spelling.sh sh build-aux/assert-shellcheck.sh sh build-aux/assert-todos.sh - -sh scripts/sync-translations.sh +sh build-aux/sync-translations.sh |