Revision 02312a1a Makefile.am

b/Makefile.am
1720 1720
	$(CHECK_VERSION) $(VERSION) $(top_srcdir)/NEWS
1721 1721
	RELEASE=$(PACKAGE_VERSION) $(CHECK_NEWS) < $(top_srcdir)/NEWS
1722 1722
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(CHECK_IMPORTS) . $(standalone_python_modules)
1723
	@expver=$(VERSION_MAJOR).$(VERSION_MINOR); \
1724 1723
	error= ; \
1725
	if test "`head -n 1 $(top_srcdir)/README`" != "Ganeti $$expver"; then \
1726
	  echo "Incorrect version in README, expected $$expver" >&2; \
1727
	  error=1; \
1728
	fi; \
1729
	for file in doc/iallocator.rst doc/hooks.rst doc/virtual-cluster.rst \
1730
	    doc/security.rst; do \
1731
	  if test "`sed -ne '4 p' $(top_srcdir)/$$file`" != \
1732
	    "Documents Ganeti version $$expver"; then \
1733
	    echo "Incorrect version in $$file, expected $$expver" >&2; \
1724
	if [ "x`echo $(VERSION_SUFFIX)|grep 'alpha'`" == "x" ]; then \
1725
	  expver=$(VERSION_MAJOR).$(VERSION_MINOR); \
1726
	  if test "`head -n 1 $(top_srcdir)/README`" != "Ganeti $$expver"; then \
1727
	    echo "Incorrect version in README, expected $$expver" >&2; \
1728
	    error=1; \
1729
	  fi; \
1730
	  for file in doc/iallocator.rst doc/hooks.rst doc/virtual-cluster.rst \
1731
	      doc/security.rst; do \
1732
	    if test "`sed -ne '4 p' $(top_srcdir)/$$file`" != \
1733
	      "Documents Ganeti version $$expver"; then \
1734
	      echo "Incorrect version in $$file, expected $$expver" >&2; \
1735
	      error=1; \
1736
	    fi; \
1737
	  done; \
1738
	  if ! test -f $(top_srcdir)/doc/design-$$expver.rst; then \
1739
	    echo "File $(top_srcdir)/doc/design-$$expver.rst not found" >&2; \
1740
	    error=1; \
1741
	  fi; \
1742
	  if test "`sed -ne '5 p' $(top_srcdir)/doc/design-draft.rst`" != \
1743
	    ".. Last updated for Ganeti $$expver"; then \
1744
	    echo "doc/design-draft.rst was not updated for version $$expver" >&2; \
1734 1745
	    error=1; \
1735 1746
	  fi; \
1736
	done; \
1737
	if ! test -f $(top_srcdir)/doc/design-$$expver.rst; then \
1738
	  echo "File $(top_srcdir)/doc/design-$$expver.rst not found" >&2; \
1739
	  error=1; \
1740
	fi; \
1741
	if test "`sed -ne '5 p' $(top_srcdir)/doc/design-draft.rst`" != \
1742
	  ".. Last updated for Ganeti $$expver"; then \
1743
	  echo "doc/design-draft.rst was not updated for version $$expver" >&2; \
1744
	  error=1; \
1745 1747
	fi; \
1746 1748
	for file in configure.ac $(HS_LIBTEST_SRCS) $(HS_PROG_SRCS); do \
1747 1749
	  if test $$(wc --max-line-length < $(top_srcdir)/$$file) -gt 80; then \

Also available in: Unified diff