From dddfbc0b5b844b1172ac1e21d7bc09885b9a64cb Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 9 Aug 2003 17:01:23 +0000 Subject: [PATCH] (sc_sun_os_names): New rule. (syntax-check-rules): Add it. --- Makefile.maint | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Makefile.maint b/Makefile.maint index 4018a5dd21..afd384eff0 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -63,14 +63,15 @@ local-check = \ # It's not a big deal -- just aesthetics. .PHONY: $(syntax-check-rules) syntax-check-rules = \ - sc_unmarked_diagnostics \ sc_cast_of_argument_to_free \ sc_cast_of_x_alloc_return_value \ - sc_space_tab \ - sc_error_exit_success \ - sc_xalloc_h_in_src \ sc_changelog \ - sc_system_h_headers + sc_error_exit_success \ + sc_space_tab \ + sc_sun_os_names \ + sc_system_h_headers \ + sc_unmarked_diagnostics \ + sc_xalloc_h_in_src syntax-check: $(syntax-check-rules) # @grep -E '# *include <(limits|std(def|arg|bool))\.h>' \ @@ -166,6 +167,14 @@ sc_system_h_headers: { echo '$(ME): the above are already included via system.h' 1>&2; \ exit 1; } || : +sc_sun_os_names: + @( cvsu --list ) > /dev/null 2>&1 || : && \ + grep -Ei \ + 'solaris[^[:alnum:]]*2\.(7|8|9|[1-9][0-9])|sunos[^[:alnum:]][6-9]' \ + $$(cvsu --list | grep -vE 'config-log|ChangeLog|config\.guess') && \ + { echo '$(ME): found misuse of Sun OS version numbers' 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. -- 2.47.2