summaryrefslogtreecommitdiff
path: root/test/build
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-03-25 13:08:31 +0000
committerMike Frysinger <vapier@gentoo.org>2007-03-25 13:08:31 +0000
commitf211204dd3eee466f5f66d06377e1db4a9424ac3 (patch)
tree2519d582a2993e50b6e97591c248a9251c939dd5 /test/build
parent520e102e16939ccc3fd47756a1b7ffabfb78afc5 (diff)
Paul Brook writes: filter .svn dirs to greatly speed up the file grep test
Diffstat (limited to 'test/build')
-rw-r--r--test/build/check_config_options.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/build/check_config_options.sh b/test/build/check_config_options.sh
index 56d09244b..086131f38 100644
--- a/test/build/check_config_options.sh
+++ b/test/build/check_config_options.sh
@@ -4,14 +4,15 @@ ret=0
# Make sure nothing uses the ARCH_HAS_MMU option anymore
result=$(
-grep -rsHI \
- __ARCH_HAS_MMU__ ../.. \
+find ../.. \
| grep -v \
-e include/bits/uClibc_config.h \
- -e test/build/check_config_options.sh \
- -e /.svn/
+ -e /test/ \
+ -e /.svn/ \
+ | xargs grep -sHI \
+ __ARCH_HAS_MMU__
)
-if test -n "$result" ; then
+if [ -n "$result" ] ; then
echo "The build system is incorrectly using ARCH_HAS_MMU:"
echo "$result"
ret=1