X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/4ac33123a76ec76911d599f212e1b47412730614..55e350dc7050d5384f8d33a1583d6c8d8da4e1c3:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 6556f92..d4d375f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -185,6 +185,14 @@ 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) 'NR == 1 && $$NF != "$(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 OPTFILES = src/options.opt .opt.h: