From 924d9134f64bf98ae96e5b2e7d23386808493a0c Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Thu, 13 Dec 2012 16:03:30 +0100
Subject: [PATCH] Add version check for doc/design-draft.rst
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This is similar to README or β€œdoc/security.rst”. Having a comment that
needs updating for a new version is more likely going to trigger a check
of the lists of design drafts.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 Makefile.am          | 5 +++++
 doc/design-draft.rst | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index 61d622b26..ec4ea6766 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1508,6 +1508,11 @@ check-local: check-dirs $(GENERATED_FILES)
 	  echo "File $(top_srcdir)/doc/design-$$expver.rst not found" >&2; \
 	  error=1; \
 	fi; \
+	if test "`sed -ne '5 p' $(top_srcdir)/doc/design-draft.rst`" != \
+	  ".. Last updated for Ganeti $$expver"; then \
+	  echo "doc/design-draft.rst was not updated for version $$expver" >&2; \
+	  error=1; \
+	fi; \
 	for file in configure.ac $(HS_LIBTEST_SRCS) $(HS_PROG_SRCS); do \
 	  if test $$(wc --max-line-length < $(top_srcdir)/$$file) -gt 80; then \
 	    echo "Longest line in $$file is longer than 80 characters" >&2; \
diff --git a/doc/design-draft.rst b/doc/design-draft.rst
index 7deec88c2..275f2e7f1 100644
--- a/doc/design-draft.rst
+++ b/doc/design-draft.rst
@@ -2,6 +2,8 @@
 Design document drafts
 ======================
 
+.. Last updated for Ganeti 2.6
+
 .. toctree::
    :maxdepth: 2
 
-- 
GitLab