2020# from which we generated our po files. We use it here so when we
2121# test build, we're building with the .rst files that generated our
2222# .po files.
23- CPYTHON_CURRENT_COMMIT := e699e5c20fc495952905597edfa82de0c1848f8c
23+ CPYTHON_CURRENT_COMMIT := 235f5fd2ca4c6acb4b04efeaaa1ecb46d41d5a6d
2424LANGUAGE := tr
25- BRANCH := 3.10
25+ BRANCH := 3.11
2626
2727EXCLUDED := \
2828 whatsnew/2.?.po \
@@ -98,7 +98,7 @@ all: ensure_prerequisites
9898 -D latex_elements.inputenc= \
9999 -D latex_elements.fontenc=' \
100100 $(MODE )
101- @echo " Build success, open file://$( abspath venv/cpython/) /Doc/build/html/index.html or run 'make serve ' to see them."
101+ @echo " Build success, open file://$( abspath venv/cpython/) /Doc/build/html/index.html or run 'make htmlview ' to see them."
102102
103103
104104# We clone cpython/ inside venv/ because venv/ is the only directory
@@ -117,14 +117,9 @@ ensure_prerequisites: venv/cpython/.git/HEAD
117117 exit 1; \
118118 fi
119119
120-
121- .PHONY : serve
122- serve :
123- ifdef SERVE_PORT
124- $(MAKE) -C venv/cpython/Doc/ serve SERVE_PORT=$(SERVE_PORT)
125- else
126- $(MAKE) -C venv/cpython/Doc/ serve
127- endif
120+ .PHONY : htmlview
121+ htmlview : MODE=htmlview
122+ htmlview : all
128123
129124.PHONY : todo
130125todo : ensure_prerequisites
@@ -142,17 +137,27 @@ DESTS = $(addprefix $(POSPELL_TMP_DIR)/,$(addsuffix .out,$(SRCS)))
142137.PHONY : spell
143138spell : ensure_prerequisites $(DESTS )
144139
140+ .PHONY : line-length
141+ line-length :
142+ @echo " Searching for long lines..."
143+ @awk ' {if (length(gensub(/శ్రీనివాస్/, ".", "g", $$0)) > 80 && length(gensub(/[^ ]/, "", "g")) > 1) {print FILENAME ":" FNR, "line too long:", $$0; ERRORS+=1}} END {if (ERRORS>0) {exit 1}}' * .po * /* .po
144+
145+ .PHONY : sphinx-lint
146+ sphinx-lint :
147+ @echo " Checking all files using sphinx-lint..."
148+ @sphinx-lint --enable all --disable line-too-long * .po * /* .po
149+
145150$(POSPELL_TMP_DIR ) /% .po.out : % .po dict
146151 @echo " Pospell checking $<..."
147- mkdir -p $(@D )
152+ @ mkdir -p $(@D )
148153 pospell -p dict -l tr_TR $< && touch $@
149154
150155.PHONY : fuzzy
151156fuzzy : ensure_prerequisites
152157 potodo -f --exclude venv .venv $(EXCLUDED )
153158
154159.PHONY : verifs
155- verifs : spell
160+ verifs : spell line-length sphinx-lint
156161
157162.PHONY : clean
158163clean :
0 commit comments