44#
55# - make # Automatically build an html local version
66# - make todo # To list remaining tasks
7+ # - make verifs # To check for correctness: wrapping, spelling
8+ # - make powrap # To check for wrapping
9+ # - make pospell # To check for spelling
710# - make merge # To merge pot from upstream
811# - make fuzzy # To find fuzzy strings
912# - make progress # To compute current progression
@@ -42,6 +45,7 @@ $(SPHINX_CONF):
4245.PHONY : upgrade_venv
4346upgrade_venv :
4447 $(MAKE ) -C $(CPYTHON_CLONE ) /Doc/ VENVDIR=$(VENV ) PYTHON=$(PYTHON ) venv
48+ $(VENV ) /bin/pip install -U potodo powrap pospell
4549
4650
4751$(VENV ) /bin/activate : $(SPHINX_CONF )
@@ -58,10 +62,27 @@ progress:
5862$(VENV ) /bin/potodo : $(VENV ) /bin/activate
5963 $(VENV ) /bin/pip install potodo
6064
65+ $(VENV ) /bin/powrap : $(VENV ) /bin/activate
66+ $(VENV ) /bin/pip install powrap
67+
68+ $(VENV ) /bin/pospell : $(VENV ) /bin/activate
69+ $(VENV ) /bin/pip install pospell
70+
6171.PHONY : todo
6272todo : $(VENV ) /bin/potodo
6373 $(VENV ) /bin/potodo --github python/python-docs-fr
6474
75+ .PHONY : verifs
76+ verifs : powrap pospell
77+
78+ .PHONY : powrap
79+ powrap : $(VENV ) /bin/powrap
80+ $(VENV ) /bin/powrap --check --quiet * .po * /* .po
81+
82+ .PHONY : pospell
83+ pospell : $(VENV ) /bin/pospell
84+ $(VENV ) /bin/pospell -p dict -l fr_FR * .po * /* .po
85+
6586.PHONY : merge
6687merge : upgrade_venv
6788ifneq "$(shell cd $(CPYTHON_CLONE ) 2>/dev/null && git describe --contains --all HEAD) " "$(BRANCH ) "
0 commit comments