diff options
author | Jim Meyering <jim@meyering.net> | 2005-03-28 19:22:36 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-03-28 19:22:36 +0000 |
commit | 3a14f695328f325676fbef914a57c34172fd7cf5 (patch) | |
tree | 39435703904ad23050078358ab49a56a8ee5b13c | |
parent | d7f7c39c11f5d78fe43bc34a7fcc323e37d3c0ff (diff) | |
download | coreutils-3a14f695328f325676fbef914a57c34172fd7cf5.tar.xz |
(sc_tight_scope): Adjust to catch any
new declarations like that of stty.c's `speeds'.
-rw-r--r-- | src/Makefile.am | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 5e8575f43..24ca5e571 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; } || : |