Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/bmake/find_lib.sh
39475 views
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
21
22