mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
8e2f5020cd
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>
16 lines
253 B
Bash
Executable File
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
|