diff options
-rwxr-xr-x | build_tools/bin/execheck.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build_tools/bin/execheck.sh b/build_tools/bin/execheck.sh new file mode 100755 index 0000000..3c0fe30 --- /dev/null +++ b/build_tools/bin/execheck.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +if [ -z "$*" ] +then + files="/lib/* /usr/lib/* /usr/local/lib/* \ + /bin/* /usr/bin/* /usr/local/bin/* \ + /sbin/* /usr/sbin/*" +else + files="$*" +fi + +for exe in $files +do + if [ -x $exe ] && [ -f $exe ] + then + if ldd $exe | grep -q "not found" ; then + pacman -Qo $exe + ldd $exe | grep "not found" + fi + fi +done |