summaryrefslogtreecommitdiff
path: root/Documentation/automake.mk
diff options
context:
space:
mode:
authorRussell Bryant <russell@ovn.org>2017-04-11 13:13:16 -0400
committerRussell Bryant <russell@ovn.org>2017-04-12 11:09:28 -0400
commitbecca4761e1f95f5bbd60e673994206e8eac4d78 (patch)
treee375128eab4bd97dcddc5ac787bde0c8e9a873c1 /Documentation/automake.mk
parent280337736851db0358511ee211d02dc0975aad1a (diff)
downloadopenvswitch-becca4761e1f95f5bbd60e673994206e8eac4d78.tar.gz
docs: Update version numbers in doc config.
Update the version numbers in the documentation config to reflect 2.7.90 instead of 2.6.0. This patch also updates the build system to automatically update this file. conf.py is now a generated file from conf.py.in. We still include conf.py in the tree because it's needed for the docs to be automatically generated for docs.openvswitch.org. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'Documentation/automake.mk')
-rw-r--r--Documentation/automake.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/automake.mk b/Documentation/automake.mk
index 1fd452be8..ed12ad017 100644
--- a/Documentation/automake.mk
+++ b/Documentation/automake.mk
@@ -3,6 +3,7 @@ DOC_SOURCE = \
Documentation/_static/logo.png \
Documentation/_static/overview.png \
Documentation/conf.py \
+ Documentation/conf.py.in \
Documentation/index.rst \
Documentation/contents.rst \
Documentation/intro/index.rst \
@@ -123,6 +124,15 @@ clean-docs:
rm -rf $(SPHINXBUILDDIR)/html
rm -rf $(SPHINXBUILDDIR)/linkcheck
CLEAN_LOCAL += clean-docs
+
+ALL_LOCAL += $(srcdir)/Documentation/conf.py
+$(srcdir)/Documentation/conf.py: $(srcdir)/Documentation/conf.py.in
+ $(AM_V_GEN)($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g' \
+ -e 's,[@]OVS_MAJOR[@],$(shell echo $(VERSION) | cut -f1 -d.),g' \
+ -e 's,[@]OVS_MINOR[@],$(shell echo $(VERSION) | cut -f2 -d.),g') \
+ < $(srcdir)/Documentation/$(@F).in > $(@F).tmp || exit 1; \
+ if cmp -s $(@F).tmp $@; then touch $@; rm $(@F).tmp; else mv $(@F).tmp $@; fi
+
endif
.PHONY: check-docs
.PHONY: clean-docs