From 0bf3ee9411c21e4707ef3efa6743028a0e14ec20 Mon Sep 17 00:00:00 2001 From: Greg Frost Date: Sat, 25 Jul 2009 07:58:57 +0930 Subject: execheck.sh added to check for exes needing missing libs --- build_tools/bin/execheck.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 build_tools/bin/execheck.sh 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 -- cgit v0.12