mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 02:52:07 +00:00
Properly mark license files as license
This commit is contained in:
parent
f009f6b8c2
commit
2c058fe634
@ -17,7 +17,6 @@ popd
|
||||
rm -rf $tdir
|
||||
cp $tfile rpmlist
|
||||
cp confluent-genesis.spec confluent-genesis-out.spec
|
||||
echo %license >> confluent-genesis-out.spec
|
||||
for r in $(cat rpmlist); do
|
||||
#rpm -qi $r | grep ^License|sed -e 's/^.*:/${r}:/' >> licenselist
|
||||
for l in $(rpm -qL $r); do
|
||||
@ -25,7 +24,7 @@ for r in $(cat rpmlist); do
|
||||
lo=${lo#licenses/}
|
||||
mkdir -p licenses/$(dirname $lo)
|
||||
cp $l licenses/$lo
|
||||
echo /opt/confluent/genesis/%{arch}/licenses/$lo >> confluent-genesis-out.spec
|
||||
echo %license /opt/confluent/genesis/%{arch}/licenses/$lo >> confluent-genesis-out.spec
|
||||
done
|
||||
done
|
||||
cp -f /boot/vmlinuz-$(uname -r) boot/kernel
|
||||
|
Loading…
Reference in New Issue
Block a user