This repository was archived by the owner on Feb 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 5
5
6
6
# You can set these variables from the command line.
7
7
PYTHON = python
8
+ BLURB = blurb
8
9
SVNROOT = http://svn.python.org/projects
9
10
SPHINXOPTS =
10
11
PAPER =
@@ -60,6 +61,19 @@ update: clean checkout
60
61
61
62
build : checkout
62
63
mkdir -p build/$(BUILDER ) build/doctrees
64
+ # Look first for a Misc/NEWS file (building from a source release tarball
65
+ # or old repo) and use that, otherwise look for a Misc/NEWS.d directory
66
+ # (building from a newer repo) and use blurb to generate the NEWS file.
67
+ @if [ -f ../Misc/NEWS ] ; then \
68
+ echo "Using existing Misc/NEWS file"; \
69
+ cp ../Misc/NEWS build/NEWS; \
70
+ elif [ -d ../Misc/NEWS.d ]; then \
71
+ echo "Building NEWS from Misc/NEWS.d with blurb"; \
72
+ $(BLURB) merge -f build/NEWS; \
73
+ else \
74
+ echo "Neither Misc/NEWS.d nor Misc/NEWS found; cannot build docs"; \
75
+ exit 1; \
76
+ fi
63
77
$(PYTHON) tools/sphinx-build.py $(ALLSPHINXOPTS)
64
78
@echo
65
79
Original file line number Diff line number Diff line change 2
2
Changelog
3
3
+++++++++
4
4
5
- .. miscnews :: ../../Misc /NEWS
5
+ .. miscnews :: ../build /NEWS
6
6
You can’t perform that action at this time.
0 commit comments