summaryrefslogtreecommitdiffstats
path: root/build_tools/bin/execheck.sh
blob: 3c0fe30f6cc4a92c2e96d9b99fdc398bbd0a6806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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