summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-05-10 17:34:51 +0200
committerJim Meyering <meyering@redhat.com>2008-05-17 12:53:29 +0200
commitdc52ae2e46bed0383fe471e253015c61e98b3ad3 (patch)
tree0759a4e5b4e18e1d0719656272d7471e43037e95 /src
parent78b0a34e931838c16614609fb16ca7c04807ed39 (diff)
downloadidutils-dc52ae2e46bed0383fe471e253015c61e98b3ad3.tar.gz
idutils-dc52ae2e46bed0383fe471e253015c61e98b3ad3.tar.bz2
idutils-dc52ae2e46bed0383fe471e253015c61e98b3ad3.zip
tests: make scope check work when $(noinst_HEADERS) is empty
* src/Makefile.am (sc_tight_scope): Add /dev/null as an argument to the sed-based variable filter, in case $(noinst_HEADERS) is empty.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index f3958d2..35fd15d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -31,7 +31,7 @@ sc_tight_scope: $(all_programs)
exit 1; } || : ; \
( printf '^program_name$$\n'; \
sed -n 's/^extern int \([^ ][^ ]*\);$$/^\1$$/p' \
- $(noinst_HEADERS) ) > $$t; \
+ $(noinst_HEADERS) /dev/null ) > $$t; \
nm -e *.$(OBJEXT) \
| sed -n 's/.* [BD] //p' \
| grep -Ev -f $$t && \