We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08ee3d1 commit 2ca412aCopy full SHA for 2ca412a
integration_tests/revert_ldd_not_found.sh
@@ -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
15
+ exit 0
16
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