2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-21 17:11:58 +00:00

Try to normalize license paths

This commit is contained in:
Jarrod Johnson 2022-04-25 14:15:07 -04:00
parent 4d218757f3
commit 5d03eb8863

View File

@ -21,9 +21,10 @@ for r in $(cat rpmlist); do
#rpm -qi $r | grep ^License|sed -e 's/^.*:/${r}:/' >> licenselist
for l in $(rpm -qL $r); do
lo=${l#/usr/share/}
lo=${l#licenses/}
mkdir -p licenses/$(dirname $lo)
cp $l $lo
echo /opt/confluent/genesis/x86_64/$lo >> confluent-genesis-out.spec
cp $l licenses/$lo
echo /opt/confluent/genesis/%{arch}/$lo >> confluent-genesis-out.spec
done
done
cp -f /boot/vmlinuz-$(uname -r) boot/kernel