]> git.draconx.ca Git - slotifier.git/blobdiff - Makefile.am
Release 1.
[slotifier.git] / Makefile.am
index 9cda5060192f50a5378e536e9c07c6f5ef869df4..95157235c33775e9e2484c4bc560824892847765 100644 (file)
@@ -68,6 +68,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
 
 # Supporting rules for gettext.
 include $(top_srcdir)/common/snippet/gettext.mk