]> git.ipfire.org Git - ipfire-2.x.git/blob - tools/find-missing-libs.sh
kernel: update 4.14.113
[ipfire-2.x.git] / tools / find-missing-libs.sh
1 #!/bin/bash
2 # This scripts lists binaries that have missing libraries.
3 # Arguments are paths to search in
4
5 main() {
6 local path
7 for path in $@; do
8 local file
9 for file in $(find "${path}" -type f); do
10 if ldd "${file}" 2>/dev/null | grep -q "not found"; then
11 echo "${file}"
12 ldd "${file}"
13 fi
14 done
15 done
16 }
17
18 main "$@" || exit $?