|
7 | 7 | # - make verifs # To check for correctness: wrapping, spelling |
8 | 8 | # - make wrap # To check for wrapping |
9 | 9 | # - make spell # To check for spelling |
10 | | -# - make merge # To merge pot from upstream |
| 10 | +# - make clean # To remove build artifacts |
11 | 11 | # - make fuzzy # To find fuzzy strings |
12 | 12 | # |
13 | 13 | # Modes are: autobuild-stable, autobuild-dev, and autobuild-html, |
|
20 | 20 | # from which we generated our po files. We use it here so when we |
21 | 21 | # test build, we're building with the .rst files that generated our |
22 | 22 | # .po files. |
23 | | -CPYTHON_CURRENT_COMMIT := d5feb2b1f12a15c1a9bac094a8f6f77d0cfcbdc2 |
| 23 | +CPYTHON_CURRENT_COMMIT := 00ddc1fbd7296ffe066077194a895b175cca26de |
| 24 | + |
24 | 25 |
|
25 | 26 | LANGUAGE := fr |
26 | 27 | BRANCH := 3.10 |
27 | 28 |
|
28 | | -EXCLUDED := whatsnew/ c-api/ |
| 29 | +EXCLUDED := \ |
| 30 | + whatsnew/ \ |
| 31 | + c-api/ \ |
| 32 | + distutils/ \ |
| 33 | + install/ \ |
| 34 | + library/2to3.po \ |
| 35 | + library/distutils.po \ |
| 36 | + library/imp.po \ |
| 37 | + library/tkinter.tix \ |
29 | 38 |
|
30 | 39 | # Internal variables |
31 | 40 |
|
@@ -119,32 +128,10 @@ fuzzy: ensure_prerequisites |
119 | 128 | .PHONY: verifs |
120 | 129 | verifs: wrap spell |
121 | 130 |
|
122 | | -.PHONY: merge |
123 | | -merge: ensure_prerequisites |
124 | | - @echo "Merge from $(UPSTREAM)" |
125 | | - git -C venv/cpython/ checkout $(BRANCH) |
126 | | - git -C venv/cpython/ pull --ff-only |
127 | | - (cd venv/cpython/Doc; sphinx-build -Q -b gettext -D gettext_compact=0 . ../pot) |
128 | | - find venv/cpython/pot/ -name '*.pot' |\ |
129 | | - while read -r POT; \ |
130 | | - do \ |
131 | | - PO="./$$(echo "$$POT" | sed "s#venv/cpython/pot/##; s#\.pot\$$#.po#")"; \ |
132 | | - mkdir -p "$$(dirname "$$PO")"; \ |
133 | | - if [ -f "$$PO" ]; \ |
134 | | - then \ |
135 | | - msgmerge --backup=off --force-po -U "$$PO" "$$POT"; \ |
136 | | - else \ |
137 | | - msgcat -o "$$PO" "$$POT"; \ |
138 | | - fi \ |
139 | | - done |
140 | | - rm -fr venv/cpython/pot/ |
141 | | - sed -i 's|^#: .*Doc/|#: |' *.po */*.po |
142 | | - powrap -m |
143 | | - @printf "\n%s %s\n" "Replace CPYTHON_CURRENT_COMMIT in Makefile by: " $(shell git -C venv/cpython/ rev-parse HEAD) |
144 | | - @printf 'To add, you can use:\n git status -s | grep "^ M .*\.po" | cut -d" " -f3 | while read -r file; do if [ $$(git diff "$$file" | wc -l) -gt 13 ]; then git add "$$file"; fi ; done\n' |
145 | | - |
146 | 131 | .PHONY: clean |
147 | 132 | clean: |
148 | 133 | @echo "Cleaning *.mo and $(POSPELL_TMP_DIR)" |
149 | 134 | rm -fr $(POSPELL_TMP_DIR) |
150 | 135 | find -name '*.mo' -delete |
| 136 | + @echo "Cleaning build directory" |
| 137 | + $(MAKE) -C venv/cpython/Doc/ clean |
0 commit comments