From becca4761e1f95f5bbd60e673994206e8eac4d78 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 11 Apr 2017 13:13:16 -0400 Subject: 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 Acked-by: Stephen Finucane --- Documentation/automake.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Documentation/automake.mk') 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 -- cgit v1.2.1