Update version in README
authorMichael Hanselmann <hansmi@google.com>
Fri, 8 Apr 2011 10:21:41 +0000 (12:21 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 8 Apr 2011 10:41:30 +0000 (12:41 +0200)
Also add a check to Makefile's check-local target.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

Makefile.am
README

index baf8d93..17a6b94 100644 (file)
@@ -817,6 +817,11 @@ check-local: check-dirs
        $(CHECK_PYTHON_CODE) $(check_python_code)
        $(CHECK_VERSION) $(VERSION) $(top_srcdir)/NEWS
        $(CHECK_NEWS) < $(top_srcdir)/NEWS
+       expver=$(VERSION_MAJOR).$(VERSION_MINOR); \
+       if test "`head -n 1 README`" != "Ganeti $$expver"; then \
+               echo "Incorrect version in README, expected $$expver"; \
+               exit 1; \
+       fi
 
 .PHONY: lint
 lint: $(BUILT_SOURCES)
diff --git a/README b/README
index 1d96bae..212e788 100644 (file)
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-Ganeti 2.2
+Ganeti 2.4
 ==========
 
 For installation instructions, read the INSTALL and the doc/install.html