aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xaux/workflow/assert-spelling.sh5
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ec1c323..125c09e 100644
--- a/Makefile
+++ b/Makefile
@@ -60,4 +60,4 @@ public: l10n-gen all README.md TODOs.md CHANGELOG.md
sh aux/workflow/manpages.sh -Ho public $(manpages)
spellcheck: public
- sh aux/workflow/assert-spelling.sh -l '$(TRANSLATIONS) en'
+ sh aux/workflow/assert-spelling.sh -l '$(TRANSLATIONS) en' $$(find public -type f -name '*.html')
diff --git a/aux/workflow/assert-spelling.sh b/aux/workflow/assert-spelling.sh
index ff1df2a..7451abb 100755
--- a/aux/workflow/assert-spelling.sh
+++ b/aux/workflow/assert-spelling.sh
@@ -33,6 +33,8 @@ while getopts 'l:i' flag; do
;;
esac
done
+shift $((OPTIND -1))
+
if [ -z "${LANGS:-}" ]; then
echo 'Missing -l LANGS' >&2
exit 2
@@ -52,8 +54,7 @@ get_lang() {
}
ACC="$(mktemp)"
-# shellcheck disable=2044
-for f in $(find public -type f -name '*.html'); do
+for f in "$@"; do
l="$(get_lang "$f")"
CURR_DICT="$(mktemp)"
cat doc/spelling/international.txt "doc/spelling/$l.txt" | sort | uniq > "$CURR_DICT"