Commit 52f4cbc3 authored by Seth Forshee's avatar Seth Forshee

UBUNTU: SAUCE: Also install files from WHENCE.ubuntu

Upstream linux-firmware has removed all symlinks from the git
repo. The links are now created by copy-firmware.sh from Link:
entries in WHENCE. This means we need to use copy-firmware.sh
to install firmware in order to get symlinks.

Update copy-firmware.sh to also check WHENCE.ubuntu for files to
install. This requires using the -h option for grep to suppress
file names in the output.
Signed-off-by: default avatarSeth Forshee <seth.forshee@canonical.com>
parent 35905b14
......@@ -31,14 +31,14 @@ while test $# -gt 0; do
esac
done
grep '^File:' WHENCE | sed -e's/^File: *//g' -e's/"//g' | while read f; do
grep -h '^File:' WHENCE WHENCE.ubuntu | sed -e's/^File: *//g' -e's/"//g' | while read f; do
test -f "$f" || continue
$verbose "copying file $f"
mkdir -p $destdir/$(dirname "$f")
cp -d "$f" $destdir/"$f"
done
grep -E '^Link:' WHENCE | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; do
grep -h -E '^Link:' WHENCE WHENCE.ubuntu | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; do
if test -L "$f"; then
test -f "$destdir/$f" && continue
$verbose "copying link $f"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment