Include hooks.rst in version check
authorMichael Hanselmann <hansmi@google.com>
Fri, 29 Jul 2011 08:18:30 +0000 (10:18 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 5 Aug 2011 11:11:06 +0000 (13:11 +0200)
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

Makefile.am

index 9ec8c67..719c14f 100644 (file)
@@ -1041,11 +1041,13 @@ check-local: check-dirs
                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
+       for file in doc/iallocator.rst doc/hooks.rst; do \
+               if test "`sed -ne '4 p' $(top_srcdir)/$$file`" != \
+                       "Documents Ganeti version $$expver"; then \
+                       echo "Incorrect version in $$file, expected $$expver"; \
+                       exit 1; \
+               fi; \
+       done
 
 .PHONY: hs-check
 hs-check: htools/test