X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/e103ddd3414aff249707e19e726082a2afb05037..e0a8c2a5c8250c7d906532c2d510c8d330125387:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 60d7940..8ed1bdb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -126,5 +126,13 @@ distcheck-hook: echo ' *** be the stub from a git checkout. The "git" and "perl"'; \ echo ' *** programs are required for ChangeLog generation to work.'; \ $(TEST_DISTRIBUTION_OR_ERROR); } >&2 + $(GENERIC_V) : 'CHECK ' NEWS; \ + $(AWK) -F: 'NR == 1 && $$1 != "$(PACKAGE_VERSION)" \ + { print FILENAME ":" NR ":", $$0; exit 1}' \ + $(distdir)/NEWS || { \ + echo 'ERROR: *** First line of NEWS should match the package version'; \ + echo ' *** $(PACKAGE_VERSION), but that does not appear to be the case.'; \ + echo ' *** Remember to update NEWS before preparing a release.'; \ + $(TEST_DISTRIBUTION_OR_ERROR); } >&2 include $(top_srcdir)/common/snippet/autotest.mk