Commit 35576615 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Fix version check

Don't ask … all I say is distcheck.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent 96602be4
......@@ -638,7 +638,7 @@ check-dirs: $(BUILT_SOURCES)
check-local: check-dirs
$(CHECK_PYTHON_CODE) $(check_python_code)
$(CHECK_VERSION) $(VERSION) $(top_srcdir)/NEWS
.PHONY: lint
lint: ganeti $(BUILT_SOURCES)
......@@ -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
echo "Unable to find heading '$newsver' in NEWS" >&2
exit 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment