3 # This script reads filenames from STDIN and outputs any relevant provides
4 # information that needs to be included in the package.
6 filelist=$(grep "\\.so" | grep -v "^/lib/ld.so" | xargs file -L 2>/dev/null | grep "ELF.*shared object" | cut -d: -f1)
9 soname=$(objdump -p $f | awk '/SONAME/ {print $2}')
11 if [ "$soname" != "" ]; then