rpm-build/autodeps/freebsdelf.prov

10 lines
340 B
Plaintext
Raw Normal View History

2002-03-25 23:16:26 +03:00
#!/bin/sh
# ----------------------------------------------------------
# find-provides for FreeBSD >= 3.3
# ----------------------------------------------------------
filelist=$(grep "\\.so" | grep -v "^/lib/ld.so" | xargs file -L 2>/dev/null | grep "ELF.*shared" | cut -d: -f1)
for f in $filelist; do
echo ${f##*/}
done | sort -u