2009-01-10 13:03:47 +00:00
|
|
|
#! /bin/bash
|
2008-07-18 10:15:21 +00:00
|
|
|
|
2010-10-28 11:10:27 +00:00
|
|
|
trap 'rm -f "$filelist"' EXIT
|
2009-01-10 13:03:47 +00:00
|
|
|
filelist=$(mktemp -t ${0##*/}.XXXXXXXXXX)
|
2010-10-28 11:10:27 +00:00
|
|
|
grep -v '/kernel/drivers/staging/.*\.ko$' >"$filelist"
|
|
|
|
shopt -s nullglob
|
|
|
|
|
|
|
|
# pretend that /boot/vmlinux-* is in the -base package and not in -devel
|
|
|
|
if grep -q '/boot/System\.map\>' "$filelist"; then
|
|
|
|
prefix=$(sed -rn 's:(.*)/boot/System\.map\>.*:\1:p; T; q' "$filelist")
|
|
|
|
for f in "$prefix"/boot/vmlinux*; do
|
|
|
|
echo "$f" >>"$filelist"
|
|
|
|
done
|
2009-07-09 02:41:55 +00:00
|
|
|
else
|
2010-10-28 11:10:27 +00:00
|
|
|
perl -ni -e 'next if /\/boot\/vmlinux/ && !/\.debug$/; print' "$filelist"
|
2009-07-09 02:41:55 +00:00
|
|
|
fi
|
2008-11-23 07:54:06 +00:00
|
|
|
|
2010-10-28 11:10:27 +00:00
|
|
|
/usr/lib/rpm/find-provides "$@" <"$filelist"
|