repo.or.cz
/
Samba
/
gebeck_regimport.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s3:librpc: add smbXsrv.idl
[Samba/gebeck_regimport.git]
/
source4
/
scripting
/
devel
/
nmfind
blob
54935f213d333fc7de458a5d8b53543144fec68e
1
#!/bin/sh
2
3
# find object files containing a symbol
4
# for example:
5
# nmfind foo_function $(find bin/default -name '*.o')
6
7
TARGET
=
$1
8
shift
9
for
f
in
$
*;
do
10
if
nm
$f
2
>&
1
|
grep
$TARGET
> /
dev
/
null
;
then
11
echo
[
$f
]
12
nm
$f
|
grep
$TARGET
13
echo
14
fi
15
done