[aurup] Small fish script for updating AUR packages with auracle

This commit is contained in:
Marcel Kapfer 2020-09-19 16:48:08 +02:00
parent 94c4238ffc
commit 13be70851a
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
1 changed files with 29 additions and 0 deletions

29
scripts/aurup.fish Executable file
View File

@ -0,0 +1,29 @@
#!/usr/bin/env fish
# Small fish script for updating AUR packages using auracle.
#
# 2020 © Marcel Kapfer <opensource@mmk2410.org>
#
# License: GPLv3 (https://www.gnu.org/licenses/gpl-3.0.en.html)
for pkg in (auracle outdated | cut -d' ' -f1)
cd ~/aur/
echo "Updating $pkg"
cd $pkg
cat PKGBUILD
read -P 'PKGBUILD OK? (y/N) > ' pkgbuild_ok
if test $pkgbuild_ok != "y"
read -P 'Edit PKGBUKD? (Y/n) > ' pkgbuild_edit
if test $pkgbuild_edit != "n"
$EDITOR -nw PKGBUILD
read -P 'PKGBUILD now OK? (y/N) > ' pkgbuild_edit_ok
if test $pkgbuild_edit_ok != "y"
continue
end
else
continue
end
end
makepkg -Ccsir
cd ..
end