1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/source4/scripting/devel/nmfind
Andreas Schneider 8e2f5020cd s4:scripting: Reformat shell scripts
shfmt -f source4/scripting/ | xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
2022-07-08 09:05:56 +00:00

16 lines
253 B
Bash
Executable File

#!/bin/sh
# find object files containing a symbol
# for example:
# nmfind foo_function $(find bin/default -name '*.o')
TARGET=$1
shift
for f in $*; do
if nm $f 2>&1 | grep $TARGET >/dev/null; then
echo [$f]
nm $f | grep $TARGET
echo
fi
done