From: Michael Hanselmann Date: Wed, 24 Nov 2010 19:50:46 +0000 (+0100) Subject: Fix version check X-Git-Tag: v2.3.1rc1~3^2~1 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/355766157fa391f36388547aa97c9f6c45326630?ds=sidebyside Fix version check Don't ask … all I say is distcheck. Signed-off-by: Michael Hanselmann Reviewed-by: Iustin Pop --- diff --git a/Makefile.am b/Makefile.am index 4e7ec69..34fd055 100644 --- a/Makefile.am +++ b/Makefile.am @@ -638,7 +638,7 @@ check-dirs: $(BUILT_SOURCES) check-local: check-dirs $(CHECK_PYTHON_CODE) $(check_python_code) - $(CHECK_VERSION) $(VERSION) + $(CHECK_VERSION) $(VERSION) $(top_srcdir)/NEWS .PHONY: lint lint: ganeti $(BUILT_SOURCES) diff --git a/autotools/check-version b/autotools/check-version index 1a2e2b3..46d8c3e 100755 --- a/autotools/check-version +++ b/autotools/check-version @@ -24,6 +24,7 @@ set -e shopt -s extglob readonly version=$1 +readonly newsfile=$2 readonly numpat='+([0-9])' case "$version" in @@ -41,7 +42,7 @@ esac readonly newsver="Version ${version/~/}" -if ! grep -q -x "$newsver" NEWS +if ! grep -q -x "$newsver" $newsfile then echo "Unable to find heading '$newsver' in NEWS" >&2 exit 1