]> git.draconx.ca Git - gob-dx.git/blobdiff - Makefile.am
Update NEWS to describe new features.
[gob-dx.git] / Makefile.am
index 60d79401a603af12ce20afa703420f0acafc715d..8ed1bdb97dad1f529d036b653c25ac2c123fba69 100644 (file)
@@ -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