summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-09-13 14:58:56 +0000
committerJim Meyering <jim@meyering.net>2005-09-13 14:58:56 +0000
commit0fafb6d2f1ad3c8936a8f65729ca68efa15752b2 (patch)
tree57aeb603a28c046225d3b1b6e6586e6601620969 /Makefile.maint
parentd632b63cc3474b7f8357fab437c818ba0ef5b956 (diff)
downloadcoreutils-0fafb6d2f1ad3c8936a8f65729ca68efa15752b2.tar.xz
don't check for HAVE_UNISTD_H
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.maint b/Makefile.maint
index ff0d1cff8..d0aad9b4f 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -71,7 +71,6 @@ syntax-check-rules = \
sc_cast_of_argument_to_free \
sc_cast_of_x_alloc_return_value \
sc_cast_of_alloca_return_value \
- sc_changelog \
sc_dd_max_sym_length \
sc_error_exit_success \
sc_file_system \
@@ -151,9 +150,9 @@ sc_file_system:
sc_obsolete_symbols:
@( $(CVS_LIST) ) > /dev/null 2>&1 || : && \
- grep -E '\<(HAVE_(FCNTL|UNISTD)_H)\>' \
+ grep -E '\<(HAVE_FCNTL_H)\>' \
$$($(CVS_LIST) | grep -vEf .x-$@ ) && \
- { echo '$(ME): do not use HAVE_FCNTL_H or HAVE_UNISTD_H' \
+ { echo '$(ME): do not use HAVE_FCNTL_H' \
1>&2; exit 1; } || :
# FIXME: warn about definitions of EXIT_FAILURE, EXIT_SUCCESS, STREQ
@@ -168,7 +167,8 @@ sc_changelog:
# with the strings from the two affected variables.
dd_c = $(srcdir)/src/dd.c
sc_dd_max_sym_length:
- @len=$$( (sed -n '/conversions\[\] =$$/,/^};/p' $(dd_c);\
+ @test -f $(dd_c) || exit 0; \
+ len=$$( (sed -n '/conversions\[\] =$$/,/^};/p' $(dd_c); \
sed -n '/flags\[\] =$$/,/^};/p' $(dd_c) ) \
|sed -n '/"/s/^[^"]*"\([^"]*\)".*/\1/p' \
| wc --max-line-length); \