aboutsummaryrefslogtreecommitdiff
path: root/external/bsd/bmake/dist/find_lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'external/bsd/bmake/dist/find_lib.sh')
-rwxr-xr-xexternal/bsd/bmake/dist/find_lib.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/external/bsd/bmake/dist/find_lib.sh b/external/bsd/bmake/dist/find_lib.sh
new file mode 100755
index 000000000000..3c2e4af2f251
--- /dev/null
+++ b/external/bsd/bmake/dist/find_lib.sh
@@ -0,0 +1,13 @@
+:
+re=$1; shift
+
+for lib in $*
+do
+ found=`nm $lib | egrep "$re"`
+ case "$found" in
+ "") ;;
+ *) echo "$lib: $found";;
+ esac
+done
+
+