Skip to content

Commit 2ca412a

Browse files
author
metworkbot
committed
build: sync common files from github_organization_management repository
1 parent 08ee3d1 commit 2ca412a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
function usage() {
4+
echo "revert_ldd.sh /path"
5+
echo " => execute this in a directory and it will try to find who"
6+
echo " need this shared library"
7+
}
8+
9+
if test "$1" = ""; then
10+
usage
11+
exit 1
12+
fi
13+
if test "$1" = "--help"; then
14+
usage
15+
exit 0
16+
fi
17+
18+
for F in $(find . -type f -name "*.so*" ; find . -type f -wholename "*/bin/*"); do
19+
N=$(ldd "${F}" 2>/dev/null |grep "=>" |awk -F '=>' '{print $1;}' |grep -c "$1")
20+
if test "$N" -gt 0; then
21+
echo "${F}"
22+
fi
23+
done

0 commit comments

Comments
 (0)