mirror of
https://github.com/Phantop/solus-stuff
synced 2024-11-16 11:54:44 +00:00
30 lines
723 B
Fish
Executable file
30 lines
723 B
Fish
Executable file
#!/usr/bin/fish
|
|
sudo eopkg it solbuild-config-local-unstable
|
|
sudo solbuild init -p local-unstable-x86_64
|
|
|
|
function buildme
|
|
echo Now building (basename $argv)
|
|
cd $argv
|
|
sudo solbuild build package.yml -p local-unstable-x86_64 -d
|
|
sudo rm /var/lib/solbuild/local/(basename $argv)*.eopkg
|
|
sudo mv *.eopkg /var/lib/solbuild/local
|
|
cd ..
|
|
end
|
|
|
|
cd (dirname (realpath (status -f)))
|
|
|
|
if test "$argv"
|
|
for i in $argv
|
|
buildme $i
|
|
end
|
|
else
|
|
sudo rm /var/lib/solbuild/local/*.eopkg
|
|
./build (cat list)
|
|
end
|
|
|
|
sudo mv (fd -e eopkg) /var/lib/solbuild/local/
|
|
cd /var/lib/solbuild/local/
|
|
sudo eopkg index --skip-signing /var/lib/solbuild/local/
|
|
sudo eopkg ur
|
|
sudo eopkg it --reinstall (basename $argv)
|