2020-07-17 16:00:13 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
date=$(date '+%Y%m%d')
|
|
|
|
|
|
|
|
echo Update to $date
|
|
|
|
|
2021-01-11 13:17:10 +01:00
|
|
|
rm -rf fedora-policy container-selinux
|
2020-07-17 16:00:13 +02:00
|
|
|
|
|
|
|
git clone --depth 1 https://github.com/fedora-selinux/selinux-policy.git
|
|
|
|
git clone --depth 1 https://github.com/containers/container-selinux.git
|
|
|
|
|
2021-02-24 14:12:28 +01:00
|
|
|
mv selinux-policy fedora-policy-$date
|
|
|
|
rm -rf fedora-policy-$date/.git*
|
2021-07-30 11:07:13 +02:00
|
|
|
mv container-selinux/container.* fedora-policy-$date/policy/modules/services/
|
2021-02-24 14:12:28 +01:00
|
|
|
|
|
|
|
rm -f fedora-policy?$date.tar*
|
|
|
|
tar cf fedora-policy-$date.tar fedora-policy-$date
|
|
|
|
bzip2 fedora-policy-$date.tar
|
|
|
|
rm -rf fedora-policy-$date container-selinux
|
2020-07-17 16:00:13 +02:00
|
|
|
|
|
|
|
sed -i -e "s/^Version:.*/Version: $date/" selinux-policy.spec
|
|
|
|
|
|
|
|
echo "remove old tar file, then osc addremove"
|