8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a5a26c commit 362e9fbCopy full SHA for 362e9fb
Doc/Makefile
@@ -40,7 +40,19 @@ help:
40
41
build:
42
-mkdir -p build
43
- $(BLURB) merge -f build/NEWS
+# Look first for a Misc/NEWS file (building from a source release tarball
44
+# or old repo) and use that, otherwise look for a Misc/NEWS.d directory
45
+# (building from a newer repo) and use blurb to generate the NEWS file.
46
+ @if [ -f ../Misc/NEWS ] ; then \
47
+ echo "Using existing Misc/NEWS file"; \
48
+ cp ../Misc/NEWS build/NEWS; \
49
+ elif [ -d ../Misc/NEWS.d ]; then \
50
+ echo "Building NEWS from Misc/NEWS.d with blurb"; \
51
+ $(BLURB) merge -f build/NEWS; \
52
+ else \
53
+ echo "Neither Misc/NEWS.d nor Misc/NEWS found; cannot build docs"; \
54
+ exit 1; \
55
+ fi
56
$(SPHINXBUILD) $(ALLSPHINXOPTS)
57
@echo
58
0 commit comments