summaryrefslogtreecommitdiffstats
path: root/build_tools/bin/execheck.sh
blob: 47640473730fef5c8ff790667a18d7f8316b13e1 (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="$(find /lib) $(find /usr/lib) $(find /usr/local/lib) \
         $(find /bin) $(find /usr/bin) $(find /usr/local/bin) \
         $(find /sbin) $(find /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