]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/find_lib.sh
Add 'contrib/spleen/' from commit '5eab6333fa27e2b6954c6927859d462a004e57bb'
[FreeBSD/FreeBSD.git] / contrib / bmake / find_lib.sh
1 :
2 re=$1; shift
3
4 # some Linux systems have deprecated egrep in favor of grep -E
5 # but not everyone supports that
6 case "`echo bmake | egrep 'a|b' 2>&1`" in
7 bmake) ;;
8 *) egrep() { grep -E "$@"; }
9 esac
10
11 for lib in $*
12 do
13   found=`nm $lib | egrep "$re"`
14   case "$found" in
15   "") ;;
16   *)    echo "$lib: $found";;
17   esac
18 done
19
20