From: Jim Meyering Date: Mon, 28 Mar 2005 19:22:36 +0000 (+0000) Subject: (sc_tight_scope): Adjust to catch any X-Git-Tag: CPPI-1_12~1169 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a14f695328f325676fbef914a57c34172fd7cf5;p=thirdparty%2Fcoreutils.git (sc_tight_scope): Adjust to catch any new declarations like that of stty.c's `speeds'. --- diff --git a/src/Makefile.am b/src/Makefile.am index 5e8575f433..24ca5e571a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -326,9 +326,11 @@ sc_tight_scope: $(all_programs) | grep -Ev -f $$t && \ { echo 'the above functions should have static scope' 1>&2; \ exit 1; } || : ; \ - printf '^program_name$$\n' > $$t; \ + ( printf '^program_name$$\n'; \ + sed -n 's/^extern int \([^ ][^ ]*\);$$/^\1$$/p' \ + $(noinst_HEADERS) ) > $$t; \ nm -e *.$(OBJEXT) \ - | sed -n 's/.* B //p' \ + | sed -n 's/.* [BD] //p' \ | grep -Ev -f $$t && \ { echo 'the above variables should have static scope' 1>&2; \ exit 1; } || :