summaryrefslogtreecommitdiff
path: root/autodeps/linux.req
blob: 3566c7b45e123373a58874671b9ebfdef423e61d (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

# note this works for both a.out and ELF executables

filelist=$(xargs file 2>/dev/null | grep "executable" | cut -d: -f1)

for f in $filelist; do
    ldd $f | grep '=>' | awk '{ print $1 }'
done | sort -u | xargs -r -n 1 basename | sort -u