Takashi Iwai
a046ee48e4
- Drop duplicated WHENCE from kernel-firmware-* subpackages (bsc#1222319) OBS-URL: https://build.opensuse.org/request/show/1164992 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=476
23 lines
440 B
Bash
23 lines
440 B
Bash
#!/bin/sh
|
|
#
|
|
# Generate license file lists for each kernel-firmware topic
|
|
#
|
|
# usage: list-license.sh < licenses.list
|
|
#
|
|
|
|
while read first topic licenses; do
|
|
case "$first" in
|
|
\#*) continue;;
|
|
esac
|
|
test -z "$licenses" && continue
|
|
for l in $licenses; do
|
|
echo $l >> files-$topic.license
|
|
done
|
|
done
|
|
|
|
for l in files-*.license; do
|
|
f=${l%.license}
|
|
sort $l | uniq | sed -e's/^\(.*\)$/%license \1/g' >> $f
|
|
rm -f $l
|
|
done
|