[v3,1/3] devtools: fix orphan symbols check with busybox
Checks
Commit Message
Avoid relying on GNU grep --exclude option.
Fixes: f8ad40dc998c ("devtools: check orphan symbols in map files")
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
devtools/check-symbol-maps.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
@@ -20,8 +20,7 @@ find_orphan_symbols ()
else
symsrc=$sym
fi
- if ! grep -q -r --exclude=$(basename $map) \
- -w $symsrc $(dirname $map) ; then
+ if [ -z "$(grep -rlw $symsrc $(dirname $map) |grep -v $map)" ] ; then
echo "$map: $sym"
fi
done