From: Jim Meyering Date: Tue, 13 Sep 2005 14:58:56 +0000 (+0000) Subject: don't check for HAVE_UNISTD_H X-Git-Tag: CPPI-1_12~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0fafb6d2f1ad3c8936a8f65729ca68efa15752b2;p=thirdparty%2Fcoreutils.git don't check for HAVE_UNISTD_H --- diff --git a/Makefile.maint b/Makefile.maint index ff0d1cff8e..d0aad9b4fa 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); \