Skip to content

Commit

Permalink
[3.5] bpo-31036: use an existing Misc/NEWS rather than trying to use …
Browse files Browse the repository at this point in the history
…blurb (#2874)

* bpo-31036: use an existing Misc/NEWS rather than trying to use blurb

* bpo-31036: avoid echoing comments
  • Loading branch information
ned-deily authored and larryhastings committed Jul 27, 2017
1 parent f9fbed1 commit 3de1448
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Doc/Makefile
Expand Up @@ -40,7 +40,19 @@ help:

build:
-mkdir -p build
$(BLURB) merge -f build/NEWS
# Look first for a Misc/NEWS file (building from a source release tarball
# or old repo) and use that, otherwise look for a Misc/NEWS.d directory
# (building from a newer repo) and use blurb to generate the NEWS file.
@if [ -f ../Misc/NEWS ] ; then \
echo "Using existing Misc/NEWS file"; \
cp ../Misc/NEWS build/NEWS; \
elif [ -d ../Misc/NEWS.d ]; then \
echo "Building NEWS from Misc/NEWS.d with blurb"; \
$(BLURB) merge -f build/NEWS; \
else \
echo "Neither Misc/NEWS.d nor Misc/NEWS found; cannot build docs"; \
exit 1; \
fi
$(SPHINXBUILD) $(ALLSPHINXOPTS)
@echo

Expand Down

0 comments on commit 3de1448

Please sign in to comment.