source: vendor/3.6.23/source4/scripting/devel/nmfind

Last change on this file was 740, checked in by Silvan Scherrer, 13 years ago

Samba Server: update vendor to 3.6.0

File size: 267 bytes
Line 
1#!/bin/sh
2
3# find object files containing a symbol
4# for example:
5# nmfind foo_function $(find bin/default -name '*.o')
6
7TARGET=$1
8shift
9for f in $*; do
10if nm $f 2>&1 | grep $TARGET > /dev/null; then
11 echo [$f]
12 nm $f | grep $TARGET
13 echo
14fi
15done
Note: See TracBrowser for help on using the repository browser.