forked from AFPy/python-docs-fr
Let's not translate the changelog (and no fuzzy for whatsnew/).
This commit is contained in:
parent
996b789b3c
commit
a6fcd89a04
6
Makefile
6
Makefile
|
@ -69,6 +69,7 @@ merge: $(VENV)/bin/sphinx-build
|
||||||
ifneq "$(shell cd $(CPYTHON_CLONE) 2>/dev/null && git describe --contains --all HEAD)" "$(BRANCH)"
|
ifneq "$(shell cd $(CPYTHON_CLONE) 2>/dev/null && git describe --contains --all HEAD)" "$(BRANCH)"
|
||||||
$(error "You're merging from a different branch")
|
$(error "You're merging from a different branch")
|
||||||
endif
|
endif
|
||||||
|
(cd $(CPYTHON_CLONE)/Doc; rm -f build/NEWS)
|
||||||
(cd $(CPYTHON_CLONE); $(VENV)/bin/sphinx-build -Q -b gettext -D gettext_compact=0 Doc pot/)
|
(cd $(CPYTHON_CLONE); $(VENV)/bin/sphinx-build -Q -b gettext -D gettext_compact=0 Doc pot/)
|
||||||
find $(CPYTHON_CLONE)/pot/ -name '*.pot' |\
|
find $(CPYTHON_CLONE)/pot/ -name '*.pot' |\
|
||||||
while read -r POT;\
|
while read -r POT;\
|
||||||
|
@ -77,7 +78,10 @@ endif
|
||||||
mkdir -p "$$(dirname "$$PO")";\
|
mkdir -p "$$(dirname "$$PO")";\
|
||||||
if [ -f "$$PO" ];\
|
if [ -f "$$PO" ];\
|
||||||
then\
|
then\
|
||||||
msgmerge --backup=off --force-po -U "$$PO" "$$POT";\
|
case "$$POT" in\
|
||||||
|
*whatsnew*) msgmerge --backup=off --force-po --no-fuzzy-matching -U "$$PO" "$$POT" ;;\
|
||||||
|
*) msgmerge --backup=off --force-po -U "$$PO" "$$POT" ;;\
|
||||||
|
esac\
|
||||||
else\
|
else\
|
||||||
msgcat -o "$$PO" "$$POT";\
|
msgcat -o "$$PO" "$$POT";\
|
||||||
fi\
|
fi\
|
||||||
|
|
Loading…
Reference in New Issue
Block a user