Add version check for doc/design-draft.rst
authorMichael Hanselmann <hansmi@google.com>
Thu, 13 Dec 2012 15:03:30 +0000 (16:03 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 13 Dec 2012 15:35:36 +0000 (16:35 +0100)
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
doc/design-draft.rst

index 61d622b..ec4ea67 100644 (file)
@@ -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; \
index 7deec88..275f2e7 100644 (file)
@@ -2,6 +2,8 @@
 Design document drafts
 ======================
 
+.. Last updated for Ganeti 2.6
+
 .. toctree::
    :maxdepth: 2