summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Frost <gregfrost1@bigpond.com>2009-07-24 22:28:57 (GMT)
committerGreg Frost <gregfrost1@bigpond.com>2009-07-24 22:28:57 (GMT)
commit0bf3ee9411c21e4707ef3efa6743028a0e14ec20 (patch)
tree5b1ebd7a19d552d363d01c0fa1ac8e94f2ab1d2e
parent579fb43b9200a07ecbfbddb79bda6af1f7857595 (diff)
downloadlinhes_dev-0bf3ee9411c21e4707ef3efa6743028a0e14ec20.zip
execheck.sh added to check for exes needing missing libs
-rwxr-xr-xbuild_tools/bin/execheck.sh21
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