2023-10-27 10:28:48 +02:00
|
|
|
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
|
2023-10-27 12:24:56 +02:00
|
|
|
ssh ferreo@direct.pika-os.com 'aptly repo remove pikauwu-rocm intel-media-va-driver-non-free'
|
|
|
|
ssh ferreo@direct.pika-os.com 'aptly repo remove pikauwu-rocm libva-drm2'
|
|
|
|
ssh ferreo@direct.pika-os.com 'aptly repo remove pikauwu-rocm libva-glx2'
|
|
|
|
ssh ferreo@direct.pika-os.com 'aptly repo remove pikauwu-rocm libva-wayland2'
|
|
|
|
ssh ferreo@direct.pika-os.com 'aptly repo remove pikauwu-rocm libva-x11-2'
|
|
|
|
ssh ferreo@direct.pika-os.com 'aptly repo remove pikauwu-rocm libva2'
|
|
|
|
|
2023-10-27 10:42:55 +02:00
|
|
|
# Give correct perms to Apt version checker
|
|
|
|
chmod 755 ./ppp
|
|
|
|
|
|
|
|
# Get oneAPI pool
|
2023-10-27 12:50:37 +02:00
|
|
|
mkdir -p ./manticoutput-tmp
|
|
|
|
cd ./manticoutput-tmp
|
2023-10-27 10:42:55 +02:00
|
|
|
|
2023-10-27 12:53:02 +02:00
|
|
|
../ppp https://ppa.pika-os.com/dists/pikauwu/rocm/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/dists/jammy/production/2328/unified/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/ ./
|
2023-10-27 10:42:55 +02:00
|
|
|
|
2023-10-27 12:50:37 +02:00
|
|
|
if [ $(ls ./ | wc -l) -lt 1 ]; then
|
2023-10-27 10:42:55 +02:00
|
|
|
echo "Mantic repos are synced"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2023-10-27 12:44:44 +02:00
|
|
|
for i in ./*.deb
|
|
|
|
do
|
|
|
|
mkdir $i-tmp
|
|
|
|
dpkg-deb -R $i $i-tmp
|
|
|
|
cat $i-tmp/DEBIAN/control | grep Version: | head -n1 | cut -d":" -f2- | tr -d ' ' > $i-version
|
|
|
|
sed -i "s#$(cat $i-version)#$(cat $i-version)-pika$(date +"%Y%m%d").pikauwu1#g" $i-tmp/DEBIAN/control
|
|
|
|
sed -e s"#(=#(>=#"g -i $i-tmp/DEBIAN/control
|
|
|
|
dpkg-deb -b $i-tmp $i-"$(date +"%Y%m%d")"-pika-pikauwu1-fixed.deb
|
|
|
|
done
|
2023-10-27 12:50:37 +02:00
|
|
|
|
2023-10-27 12:44:44 +02:00
|
|
|
cd ../
|
|
|
|
|
2023-10-27 12:50:37 +02:00
|
|
|
mkdir -p ./manticoutput/
|
|
|
|
mv -v ./manticoutput-tmp/*-fixed.deb ./manticoutput/
|
|
|
|
|
2023-10-27 10:42:55 +02:00
|
|
|
# send debs to server
|
2023-10-27 12:50:37 +02:00
|
|
|
rsync -azP ./manticoutput/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
2023-10-27 10:42:55 +02:00
|
|
|
|
2023-10-27 11:10:46 +02:00
|
|
|
# Remove currently broken debs
|
|
|
|
ssh ferreo@direct.pika-os.com 'rm -rfv /srv/www/incoming/intel-i915-dkms_*.deb'
|
|
|
|
ssh ferreo@direct.pika-os.com 'rm -rfv /srv/www/incoming/libdrm*.deb'
|
2023-10-27 12:29:24 +02:00
|
|
|
ssh ferreo@direct.pika-os.com /bin/bash << EOF
|
|
|
|
rm -rfv /srv/www/incoming/*va*.deb
|
|
|
|
EOF
|
2023-10-27 11:10:46 +02:00
|
|
|
|
2023-10-27 10:28:48 +02:00
|
|
|
# add debs to repo
|
2023-10-27 11:35:28 +02:00
|
|
|
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pikauwu-rocm /srv/www/incoming/'
|
2023-10-27 10:28:48 +02:00
|
|
|
|
|
|
|
# publish the repo
|
2023-10-27 11:35:28 +02:00
|
|
|
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite pikauwu filesystem:pikarepo:'
|