From c279f529aab08f04333d8da3f21f7b894dd025bd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 20 Jul 2003 16:03:58 +0000 Subject: (sc_changelog): Add another nit-picky check. --- Makefile.maint | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.maint b/Makefile.maint index c6fbf8646..8e0dd8f3f 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -66,7 +66,8 @@ syntax-check-rules = \ sc_cast_of_x_alloc_return_value \ sc_space_tab \ sc_error_exit_success \ - sc_xalloc_h_in_src + sc_xalloc_h_in_src \ + sc_changelog syntax-check: $(syntax-check-rules) # @grep -E '# *include <(limits|std(def|arg|bool))\.h>' \ @@ -125,6 +126,12 @@ sc_xalloc_h_in_src: fi; \ fi +# Each nonempty line must start with a year number, or a TAB. +sc_changelog: + @grep '^[^12 ]' $$(find . -name ChangeLog -maxdepth 2) && \ + { echo '$(ME): found unexpected prefix in a ChangeLog' 1>&2; \ + exit 1; } || : + # Ensure that date's --help output stays in sync with the info # documentation for GNU strftime. The only exception is %N, # which date accepts but GNU strftime does not. -- cgit v1.2.3-70-g09d2