From 7ecb3d0e0426293cf5522f30935e081a54c18676 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Mon, 6 Jun 2011 17:18:30 +0200 Subject: [PATCH] Makefile: Add version check for iallocator.rst iallocator.rst contains the Ganeti version at the top. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.am b/Makefile.am index 2c0b25db3..08b55ce00 100644 --- a/Makefile.am +++ b/Makefile.am @@ -992,6 +992,11 @@ check-local: check-dirs if test "`head -n 1 $(top_srcdir)/README`" != "Ganeti $$expver"; then \ echo "Incorrect version in README, expected $$expver"; \ exit 1; \ + fi; \ + if test "`sed -ne '4 p' $(top_srcdir)/doc/iallocator.rst`" != \ + "Documents Ganeti version $$expver"; then \ + echo "Incorrect version in iallocator.rst, expected $$expver"; \ + exit 1; \ fi .PHONY: hs-check -- GitLab