summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-03-28 19:22:36 +0000
committerJim Meyering <jim@meyering.net>2005-03-28 19:22:36 +0000
commit3a14f695328f325676fbef914a57c34172fd7cf5 (patch)
tree39435703904ad23050078358ab49a56a8ee5b13c
parentd7f7c39c11f5d78fe43bc34a7fcc323e37d3c0ff (diff)
downloadcoreutils-3a14f695328f325676fbef914a57c34172fd7cf5.tar.xz
(sc_tight_scope): Adjust to catch any
new declarations like that of stty.c's `speeds'.
-rw-r--r--src/Makefile.am6
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; } || :