diff options
author | Jim Meyering <jim@meyering.net> | 2003-08-09 17:01:23 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-08-09 17:01:23 +0000 |
commit | dddfbc0b5b844b1172ac1e21d7bc09885b9a64cb (patch) | |
tree | 08b328739fa9175a33f4c289455026eaa4ead673 | |
parent | cc586690cf39a8704a0358967a006ec264531a35 (diff) | |
download | coreutils-dddfbc0b5b844b1172ac1e21d7bc09885b9a64cb.tar.xz |
(sc_sun_os_names): New rule.
(syntax-check-rules): Add it.
-rw-r--r-- | Makefile.maint | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/Makefile.maint b/Makefile.maint index 4018a5dd2..afd384eff 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. |