diff options
author | Greg Frost <gregfrost1@bigpond.com> | 2009-07-24 22:28:57 (GMT) |
---|---|---|
committer | Greg Frost <gregfrost1@bigpond.com> | 2009-07-24 22:28:57 (GMT) |
commit | 0bf3ee9411c21e4707ef3efa6743028a0e14ec20 (patch) | |
tree | 5b1ebd7a19d552d363d01c0fa1ac8e94f2ab1d2e | |
parent | 579fb43b9200a07ecbfbddb79bda6af1f7857595 (diff) | |
download | linhes_dev-0bf3ee9411c21e4707ef3efa6743028a0e14ec20.zip |
execheck.sh added to check for exes needing missing libs
-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 |