Skip to content

Commit 58cd92e

Browse files
pilou-Pierre-Louis Bonicoli
authored andcommitted
Check that hunspell is installed (#144)
The check doesn't verify the hunspell dictionary kind. Co-authored-by: Pierre-Louis Bonicoli <[email protected]> Reviewed-on: https://git.afpy.org/AFPy/python-docs-fr/pulls/144 Co-authored-by: pilou <[email protected]> Co-committed-by: pilou <[email protected]>
1 parent f770a90 commit 58cd92e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ venv/cpython/.git/HEAD:
110110

111111
.PHONY: ensure_test_prerequisites
112112
ensure_test_prerequisites:
113+
@if ! (hunspell -v >/dev/null 2>&1); then \
114+
echo "You're missing dependencies please install: hunspell and the fr-toutesvariantes dictionary."; \
115+
echo "The dictionary is available here http://grammalecte.net:8080/dir?ci=tip&name=gc_lang/fr/oxt/Dictionnaires/dictionaries"; \
116+
echo "and also included in the hunspell-fr-comprehensive Debian package."; \
117+
exit 1; \
118+
fi
113119
@if ! (pospell --help >/dev/null 2>&1 && potodo --help >/dev/null 2>&1); then \
114120
echo "You're missing dependencies please install:"; \
115121
echo ""; \

0 commit comments

Comments
 (0)