summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-07-02 11:58:22 +0000
committerJim Meyering <jim@meyering.net>2005-07-02 11:58:22 +0000
commit6f368f2f480c97d4a72f1b22ee7ced0d2456d658 (patch)
treef71efe581fe997335f7f6cad7e2eaecdf243f9d0 /Makefile.maint
parentf6d8b10a1c2f3c3bd5b656b9dc417fcb7c0af975 (diff)
downloadcoreutils-6f368f2f480c97d4a72f1b22ee7ced0d2456d658.tar.xz
(sc_obsolete_symbols): New rule.
(syntax-check-rules): Add it to the list.
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.maint b/Makefile.maint
index b242b67ae..a27690d3e 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -75,6 +75,7 @@ syntax-check-rules = \
sc_dd_max_sym_length \
sc_error_exit_success \
sc_file_system \
+ sc_obsolete_symbols \
sc_prohibit_atoi_atof \
sc_prohibit_jm_in_m4 \
sc_root_tests \
@@ -147,6 +148,13 @@ sc_file_system:
'rewrite to use "file system"' 1>&2; \
exit 1; } || :
+sc_obsolete_symbols:
+ @( $(CVS_LIST) ) > /dev/null 2>&1 || : && \
+ grep -E '\<(HAVE_(FCNTL|UNISTD)_H)\>' \
+ $$($(CVS_LIST) | grep -vEf .x-$@ ) && \
+ { echo '$(ME): do not use HAVE_FCNTL_H or HAVE_UNISTD_H' \
+ 1>&2; exit 1; } || :
+
# FIXME: warn about definitions of EXIT_FAILURE, EXIT_SUCCESS, STREQ
# Each nonempty line must start with a year number, or a TAB.