diff options
author | EuAndreh <eu@euandre.org> | 2021-01-27 15:55:27 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-01-27 15:58:51 -0300 |
commit | 451eed829916627e9248f1003752b43617a20ff4 (patch) | |
tree | 1799faf7932caab2f2b6fb0bccebf06601715dda /scripts | |
parent | Update link to "remembering" (diff) | |
download | euandre.org-451eed829916627e9248f1003752b43617a20ff4.tar.gz euandre.org-451eed829916627e9248f1003752b43617a20ff4.tar.xz |
mv build-aux/ -> aux/ and scripts/
Diffstat (limited to '')
-rwxr-xr-x | scripts/apply-translations.sh (renamed from build-aux/apply-translations.sh) | 2 | ||||
-rwxr-xr-x | scripts/assert-spelling.sh (renamed from build-aux/assert-spelling.sh) | 4 | ||||
-rwxr-xr-x | scripts/extract-translations.sh (renamed from build-aux/extract-translations.sh) | 0 | ||||
-rw-r--r-- | scripts/spelling/en.txt (renamed from build-aux/spelling/en.txt) | 0 | ||||
-rw-r--r-- | scripts/spelling/eo.txt (renamed from build-aux/spelling/eo.txt) | 0 | ||||
-rw-r--r-- | scripts/spelling/fr.txt (renamed from build-aux/spelling/fr.txt) | 0 | ||||
-rw-r--r-- | scripts/spelling/international.txt (renamed from build-aux/spelling/international.txt) | 0 | ||||
-rw-r--r-- | scripts/spelling/pt.txt (renamed from build-aux/spelling/pt.txt) | 0 |
8 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/apply-translations.sh b/scripts/apply-translations.sh index 190b777..5920717 100755 --- a/build-aux/apply-translations.sh +++ b/scripts/apply-translations.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -for f in $(git ls-files | grep -E '.(md|slides)$' | grep -Ev '^(vendor/reveal.js|TODOs.md|build-aux/)'); do +for f in $(git ls-files | grep -E '.(md|slides)$' | grep -Ev '^(vendor/reveal.js|TODOs.md|aux/)'); do l="$(grep '^lang: ..$' "$f" | awk '{print $2}')" if [ "$l" != 'en' ]; then ref="$(grep '^ref: ' "$f" | awk '{print $2}')" 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 diff --git a/build-aux/extract-translations.sh b/scripts/extract-translations.sh index 2333865..2333865 100755 --- a/build-aux/extract-translations.sh +++ b/scripts/extract-translations.sh diff --git a/build-aux/spelling/en.txt b/scripts/spelling/en.txt index d54b934..d54b934 100644 --- a/build-aux/spelling/en.txt +++ b/scripts/spelling/en.txt diff --git a/build-aux/spelling/eo.txt b/scripts/spelling/eo.txt index 8629511..8629511 100644 --- a/build-aux/spelling/eo.txt +++ b/scripts/spelling/eo.txt diff --git a/build-aux/spelling/fr.txt b/scripts/spelling/fr.txt index aa09184..aa09184 100644 --- a/build-aux/spelling/fr.txt +++ b/scripts/spelling/fr.txt diff --git a/build-aux/spelling/international.txt b/scripts/spelling/international.txt index d87507e..d87507e 100644 --- a/build-aux/spelling/international.txt +++ b/scripts/spelling/international.txt diff --git a/build-aux/spelling/pt.txt b/scripts/spelling/pt.txt index c7da56d..c7da56d 100644 --- a/build-aux/spelling/pt.txt +++ b/scripts/spelling/pt.txt |