diff options
author | EuAndreh <eu@euandre.org> | 2021-07-08 07:14:22 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-07-08 07:14:22 -0300 |
commit | 0693cc87fad3a3d08d4d87738af410803f15b9a3 (patch) | |
tree | b0116a9a05baf1222082ceb5ee4a9559f52808db /aux | |
parent | TODOs.md: Mark #task-0b034315-cbd2-6fd6-fd32-9e00a12b7594 as DONE (diff) | |
download | git-permalink-0693cc87fad3a3d08d4d87738af410803f15b9a3.tar.gz git-permalink-0693cc87fad3a3d08d4d87738af410803f15b9a3.tar.xz |
git mv doc/spelling/ po/
Diffstat (limited to 'aux')
-rwxr-xr-x | aux/workflow/assert-spelling.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/aux/workflow/assert-spelling.sh b/aux/workflow/assert-spelling.sh index 3781454..cdc6d28 100755 --- a/aux/workflow/assert-spelling.sh +++ b/aux/workflow/assert-spelling.sh @@ -2,7 +2,7 @@ set -eu sort_dicts() { - for f in doc/spelling/*.txt; do + for f in po/spelling/*.txt; do if ! LANG=POSIX sort "$f" | diff - "$f"; then if [ "$IN_PLACE" = true ]; then OUT="$(mktemp)" @@ -44,8 +44,8 @@ assert_arg() { assert_arg "${LANGS:-}" '-l LANGS' -mkdir -p doc/spelling -eval "touch doc/spelling/{international,$(echo "$LANGS" | tr ' ' ,)}.txt" +mkdir -p po/spelling +eval "touch po/spelling/{international,$(echo "$LANGS" | tr ' ' ,)}.txt" get_lang() { grep lang=.. "$1" | \ @@ -61,7 +61,7 @@ ACC="$(mktemp)" for f in "$@"; do l="$(get_lang "$f")" CURR_DICT="$(mktemp)" - cat doc/spelling/international.txt "doc/spelling/$l.txt" | sort | uniq > "$CURR_DICT" + cat po/spelling/international.txt "po/spelling/$l.txt" | sort | uniq > "$CURR_DICT" hunspell -u3 -H -d "$l" -p "$CURR_DICT" "$f" | tee -a "$ACC" >&2 done |