Revision 35576615

b/Makefile.am
638 638

  
639 639
check-local: check-dirs
640 640
	$(CHECK_PYTHON_CODE) $(check_python_code)
641
	$(CHECK_VERSION) $(VERSION)
641
	$(CHECK_VERSION) $(VERSION) $(top_srcdir)/NEWS
642 642

  
643 643
.PHONY: lint
644 644
lint: ganeti $(BUILT_SOURCES)
b/autotools/check-version
24 24
shopt -s extglob
25 25

  
26 26
readonly version=$1
27
readonly newsfile=$2
27 28
readonly numpat='+([0-9])'
28 29

  
29 30
case "$version" in
......
41 42

  
42 43
readonly newsver="Version ${version/~/}"
43 44

  
44
if ! grep -q -x "$newsver" NEWS
45
if ! grep -q -x "$newsver" $newsfile
45 46
then
46 47
  echo "Unable to find heading '$newsver' in NEWS" >&2
47 48
  exit 1

Also available in: Unified diff