home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
rpm-2.2.6-bin.lha
/
bin
/
find-provides
next >
Wrap
Text File
|
1996-10-12
|
530b
|
19 lines
#!/bin/sh
# This script reads filenames from STDIN and outputs any relevant provides
# information that needs to be included in the package.
filelist=$(grep "\\.so" | grep -v "^/lib/ld.so" | xargs file | grep "ELF.*shared object" | cut -d: -f1)
for f in $filelist; do
soname=$(objdump --raw $f --section=.dynstr 2> /dev/null | tr '\0' '\n' | tail -1)
if [ "$soname" != "" ]; then
if [ "$soname" != "_end" ]; then
echo $soname
else
echo ${f##*/}
fi
fi
done | sort -u