Skip to content

Commit 34a9bdf

Browse files
committed
[bikeshed] use python3; tweak debug output
1 parent 0bc1e69 commit 34a9bdf

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

document/core/Makefile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,21 +139,19 @@ singlehtml: $(GENERATED)
139139
bikeshed: $(GENERATED)
140140
$(SPHINXBUILD) -b singlehtml -c util/bikeshed \
141141
$(ALLSPHINXOPTS) $(BUILDDIR)/bikeshed_singlehtml
142-
@echo ==== Showing contents of _build/bikeshed_singlehtml/index.html ====
143-
@head -n20 _build/bikeshed_singlehtml/index.html
144-
@echo ...
145-
@echo ===================================================================
146-
python util/bikeshed_fixup.py $(BUILDDIR)/bikeshed_singlehtml/index.html \
142+
python3 util/bikeshed_fixup.py $(BUILDDIR)/bikeshed_singlehtml/index.html \
147143
>$(BUILDDIR)/bikeshed_singlehtml/index_fixed.html
148144
@echo ==== Showing contents of _build/bikeshed_singlehtml/index_fixed.html ====
149-
@head -n20 _build/bikeshed_singlehtml/index_fixed.html
150-
@echo ...
145+
@head -n10 _build/bikeshed_singlehtml/index_fixed.html
146+
@echo ... skipping $$(expr `cat _build/bikeshed_singlehtml/index_fixed.html | wc -l` - 20) lines ...
147+
@tail -n10 _build/bikeshed_singlehtml/index_fixed.html
148+
@echo
151149
@echo =========================================================================
152150
mkdir -p $(BUILDDIR)/bikeshed_mathjax/
153151
bikeshed spec index.bs $(BUILDDIR)/bikeshed_mathjax/index.html
154152
mkdir -p $(BUILDDIR)/html/bikeshed/
155153
(cd util/katex/ && yarn && yarn build && npm install --only=prod)
156-
python util/mathjax2katex.py $(BUILDDIR)/bikeshed_mathjax/index.html \
154+
python3 util/mathjax2katex.py $(BUILDDIR)/bikeshed_mathjax/index.html \
157155
>$(BUILDDIR)/html/bikeshed/index.html
158156
mkdir -p $(BUILDDIR)/html/bikeshed/katex/dist/
159157
cp -r util/katex/dist/* $(BUILDDIR)/html/bikeshed/katex/dist/

0 commit comments

Comments
 (0)