34
34
@echo " pot Create/Update POT files from source files"
35
35
@echo " serve Serve a built documentation on http://localhost:8000"
36
36
@echo " spell Check spelling, storing output in $( POSPELL_TMP_DIR) "
37
- @echo " progress To compute current progression on the tutorial"
37
+ @echo " progress To compute current progression on the tutorial"
38
38
@echo " "
39
39
40
40
@@ -56,9 +56,9 @@ build: setup
56
56
-D latex_elements.inputenc= \
57
57
-D latex_elements.fontenc=' \
58
58
html;
59
-
59
+
60
60
@echo "Success! Open file://$(CPYTHON_WORKDIR)/Doc/build/html/index.html, " \
61
- " or run 'make serve' to see them in http://localhost:8000" ;
61
+ "or run 'make serve' to see them in http://localhost:8000";
62
62
63
63
64
64
# push: push new translation files and Transifex config files to repository,
@@ -99,17 +99,17 @@ tx-config: pot
99
99
rm -rf .tx; \
100
100
$(VENV ) /bin/sphinx-intl create-txconfig; \
101
101
$(VENV ) /bin/sphinx-intl update-txconfig-resources \
102
- --transifex-project-name=$(TRANSIFEX_PROJECT ) \
103
- --locale-dir . \
104
- --pot-dir pot;
105
-
102
+ --transifex-project-name=$(TRANSIFEX_PROJECT ) \
103
+ --locale-dir . \
104
+ --pot-dir pot;
105
+
106
106
cd $(OLDPWD)
107
107
mv $(CPYTHON_WORKDIR)/Doc/locales/.tx/config .tx/config
108
-
108
+
109
109
sed -i .tx/config \
110
- -e ' /^source_file/d' \
111
- -e ' s|<lang>/LC_MESSAGES/||' \
112
- -e " s|^file_filter|trans.$( LANGUAGE) |"
110
+ -e '/^source_file/d' \
111
+ -e 's|<lang>/LC_MESSAGES/||' \
112
+ -e "s|^file_filter|trans.$(LANGUAGE)|"
113
113
114
114
115
115
# pot: After running "setup" target, run a cpython Makefile's target
@@ -144,7 +144,7 @@ setup: venv
144
144
VENVDIR=$(CPYTHON_WORKDIR ) /Doc/venv \
145
145
PYTHON=$(PYTHON ) venv; \
146
146
fi
147
-
147
+
148
148
# Setup translation files
149
149
if ! [ -d $(LOCALE_DIR)/$(LANGUAGE)/LC_MESSAGES/ ]; then \
150
150
mkdir -p $(LOCALE_DIR)/$(LANGUAGE)/LC_MESSAGES/; \
@@ -159,9 +159,9 @@ venv:
159
159
if [ ! -d $( VENV) ]; then \
160
160
$(PYTHON ) -m venv --prompt $(LANGUAGE_TEAM ) $(VENV ) ; \
161
161
fi
162
-
162
+
163
163
$(VENV)/bin/python -m pip install -q -r requirements.txt 2> $(VENV)/pip-install.log
164
-
164
+
165
165
if grep -q 'pip install --upgrade pip' $(VENV)/pip-install.log; then \
166
166
$(VENV)/bin/pip install -q --upgrade pip; \
167
167
fi
0 commit comments