From 58cd92ed6487a2b2c7e76b7c107714ad64a97589 Mon Sep 17 00:00:00 2001 From: pilou Date: Tue, 23 May 2023 18:47:00 +0000 Subject: [PATCH] Check that hunspell is installed (#144) The check doesn't verify the hunspell dictionary kind. Co-authored-by: Pierre-Louis Bonicoli Reviewed-on: https://git.afpy.org/AFPy/python-docs-fr/pulls/144 Co-authored-by: pilou Co-committed-by: pilou --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 63cf96b3..27d610d3 100644 --- a/Makefile +++ b/Makefile @@ -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 ""; \