fa088572b4
Accepted submit request 51489 from user jeff_mahoney OBS-URL: https://build.opensuse.org/request/show/51489 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kernel-source?expand=0&rev=105
19 lines
555 B
Bash
19 lines
555 B
Bash
#! /bin/bash
|
|
|
|
trap 'rm -f "$filelist"' EXIT
|
|
filelist=$(mktemp -t ${0##*/}.XXXXXXXXXX)
|
|
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
|
|
else
|
|
perl -ni -e 'next if /\/boot\/vmlinux/ && !/\.debug$/; print' "$filelist"
|
|
fi
|
|
|
|
/usr/lib/rpm/find-provides "$@" <"$filelist"
|