forked from AFPy/python-docs-fr
Enhance Makefile and .travis.yml from various feedbacks. (#393)
This commit is contained in:
parent
c6d8362c83
commit
28d08a3a41
|
@ -7,5 +7,5 @@ install:
|
|||
- pip install pospell
|
||||
- pospell --version
|
||||
script:
|
||||
- pospell -p dict -l fr **/*.po
|
||||
- pospell -p dict -l fr_FR **/*.po
|
||||
- make CPYTHON_CLONE=/tmp/cpython/ COMMIT=d4ed8809dd
|
||||
|
|
4
Makefile
4
Makefile
|
@ -21,13 +21,13 @@ PYTHON := $(shell which python3)
|
|||
MODE := autobuild-dev-html
|
||||
BRANCH = 3.7
|
||||
COMMIT =
|
||||
JOBS = 4
|
||||
JOBS = auto
|
||||
|
||||
|
||||
.PHONY: all
|
||||
all: $(SPHINX_CONF) $(VENV)/bin/activate
|
||||
ifneq "$(shell cd $(CPYTHON_CLONE) 2>/dev/null && git describe --contains --all HEAD)" "$(BRANCH)"
|
||||
$(warning "Your ../cpython checkout is on the wrong branch, got $(shell cd $(CPYTHON_CLONE) 2>/dev/null && git describe --contains --all HEAD) expected $(BRANCH)")
|
||||
$(warning "Your ../cpython checkout may be on the wrong branch, got $(shell cd $(CPYTHON_CLONE) 2>/dev/null && git describe --contains --all HEAD) expected $(BRANCH)")
|
||||
endif
|
||||
mkdir -p $(CPYTHON_CLONE)/locales/$(LANGUAGE)/
|
||||
ln -nfs $(shell $(PYTHON) -c 'import os; print(os.path.realpath("."))') $(CPYTHON_CLONE)/locales/$(LANGUAGE)/LC_MESSAGES
|
||||
|
|
Loading…
Reference in New Issue
Block a user