Elliot says this one actually works!
[platform/upstream/rpm.git] / autodeps / solaris.prov
1 #!/bin/sh
2
3 # This script reads filenames from STDIN and outputs any relevant provides
4 # information that needs to be included in the package.
5
6 filelist=`grep "lib.*\\.so" | xargs file -L 2>/dev/null | grep "ELF.*dynamic 
7 lib" | cut -d: -f1 | sort -u`
8 for I in $filelist; do
9         basename $I
10 done
11