Check that hunspell is installed (#144)

The check doesn't verify the hunspell dictionary kind.

Co-authored-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli@ir5.eu>
Reviewed-on: AFPy/python-docs-fr#144
Co-authored-by: pilou <pierre-louis.bonicoli@libregerbil.fr>
Co-committed-by: pilou <pierre-louis.bonicoli@libregerbil.fr>
This commit is contained in:
pilou 2023-05-23 18:47:00 +00:00 committed by Julien Palard
parent f770a90e58
commit 58cd92ed64
1 changed files with 6 additions and 0 deletions

View File

@ -110,6 +110,12 @@ venv/cpython/.git/HEAD:
.PHONY: ensure_test_prerequisites
ensure_test_prerequisites:
@if ! (hunspell -v >/dev/null 2>&1); then \
echo "You're missing dependencies please install: hunspell and the fr-toutesvariantes dictionary."; \
echo "The dictionary is available here http://grammalecte.net:8080/dir?ci=tip&name=gc_lang/fr/oxt/Dictionnaires/dictionaries"; \
echo "and also included in the hunspell-fr-comprehensive Debian package."; \
exit 1; \
fi
@if ! (pospell --help >/dev/null 2>&1 && potodo --help >/dev/null 2>&1); then \
echo "You're missing dependencies please install:"; \
echo ""; \