Revision d466fd8b Makefile.am

b/Makefile.am
1624 1624
	$(CHECK_PYTHON_CODE) $(check_python_code)
1625 1625
	PYTHONPATH=. $(CHECK_HEADER) $(check_python_code)
1626 1626
	$(CHECK_VERSION) $(VERSION) $(top_srcdir)/NEWS
1627
	$(CHECK_NEWS) < $(top_srcdir)/NEWS
1627
	RELEASE=$(PACKAGE_VERSION) $(CHECK_NEWS) < $(top_srcdir)/NEWS
1628 1628
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(CHECK_IMPORTS) . $(standalone_python_modules)
1629 1629
	@expver=$(VERSION_MAJOR).$(VERSION_MINOR); \
1630 1630
	error= ; \
......
1765 1765
	  echo "Found empty files or directories in final archive." 1>&2; \
1766 1766
	  exit 1; \
1767 1767
	fi
1768
	if test -n "$(BUILD_RELEASE)" && \
1769
	   grep -n -H -E '^\*.*unreleased' $(top_distdir)/NEWS; then \
1770
	   echo "Found unreleased version in NEWS." >&2; \
1771
	   exit 1; \
1772
	fi
1773 1768
	if test -e $(top_distdir)/doc/man-html; then \
1774 1769
	  echo "Found documentation including man pages in final archive" >&2; \
1775 1770
	  exit 1; \
1776 1771
	fi
1777 1772

  
1778
# When building a release, stricter checks should be used
1779
distcheck-release dist-release: export BUILD_RELEASE = 1
1773
# Backwards compatible distcheck-release target
1780 1774
distcheck-release: distcheck
1781 1775

  
1782 1776
distrebuildcheck: dist

Also available in: Unified diff