Update oneapi.sh
This commit is contained in:
parent
1974aecee4
commit
a2769e1a85
16
oneapi.sh
16
oneapi.sh
@ -12,20 +12,16 @@ ssh ferreo@direct.pika-os.com 'aptly repo remove pikauwu-rocm libva2'
|
|||||||
chmod 755 ./ppp
|
chmod 755 ./ppp
|
||||||
|
|
||||||
# Get oneAPI pool
|
# Get oneAPI pool
|
||||||
mkdir -p ./manticoutput
|
mkdir -p ./manticoutput-tmp
|
||||||
cd ./manticoutput
|
cd ./manticoutput-tmp
|
||||||
|
|
||||||
../ppp https://ppa.pika-os.com/dists/pikauwu/rocm/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/dists/jammy/unified/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/pikauwu/rocm/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/dists/jammy/unified/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/ ./
|
||||||
|
|
||||||
cd ../
|
if [ $(ls ./ | wc -l) -lt 1 ]; then
|
||||||
|
|
||||||
if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then
|
|
||||||
echo "Mantic repos are synced"
|
echo "Mantic repos are synced"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p ./manticoutput-real
|
|
||||||
cd ./manticoutput-real
|
|
||||||
for i in ./*.deb
|
for i in ./*.deb
|
||||||
do
|
do
|
||||||
mkdir $i-tmp
|
mkdir $i-tmp
|
||||||
@ -35,10 +31,14 @@ do
|
|||||||
sed -e s"#(=#(>=#"g -i $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
|
dpkg-deb -b $i-tmp $i-"$(date +"%Y%m%d")"-pika-pikauwu1-fixed.deb
|
||||||
done
|
done
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
|
mkdir -p ./manticoutput/
|
||||||
|
mv -v ./manticoutput-tmp/*-fixed.deb ./manticoutput/
|
||||||
|
|
||||||
# send debs to server
|
# send debs to server
|
||||||
rsync -azP ./manticoutput-real/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
rsync -azP ./manticoutput/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
||||||
|
|
||||||
# Remove currently broken debs
|
# 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/intel-i915-dkms_*.deb'
|
||||||
|
Loading…
Reference in New Issue
Block a user