Compare commits

..

No commits in common. "98059d44841620854e6f4bc140583787dc3ce54c" and "13be70851a5228f7fc46e20c096c42826f63681d" have entirely different histories.

View file

@ -6,43 +6,17 @@
#
# License: GPLv3 (https://www.gnu.org/licenses/gpl-3.0.en.html)
set -l pwd $PWG
set_color -o blue
echo "Listing outdated AUR packages..."
set_color normal
auracle outdated
if test $status -ne 0
set_color -o blue
echo "No updates available."
set_color -o red
echo "Exiting now..."
set_color normal
exit 1
else
set_color -o blue
echo "Updating existing repositories..."
set_color normal
cd ~/aur/
auracle update
end
for pkg in (auracle outdated | cut -d' ' -f1)
set_color -o blue
echo "Updating $pkg..."
set_color normal
cd ~/aur/
echo "Updating $pkg"
cd $pkg
set_color -o blue
echo "PKGBUILD for $pkg:"
set_color normal
cat PKGBUILD
read -p 'set_color -o cyan; echo -n "PKGBUILD OK?"; set_color normal; echo -n " (y/N) > "' pkgbuild_ok
read -P 'PKGBUILD OK? (y/N) > ' pkgbuild_ok
if test $pkgbuild_ok != "y"
read -p 'set_color -o cyan; echo -n "Edit PKGBUILD?"; set_color normal; echo -n " (Y/n) > "' pkgbuild_edit
read -P 'Edit PKGBUKD? (Y/n) > ' pkgbuild_edit
if test $pkgbuild_edit != "n"
$EDITOR -nw PKGBUILD
read -p 'set_color -o cyan; echo -n "PKGBUILD OK?"; set_color normal; echo -n " (y/N) > "' pkgbuild_edit_ok
read -P 'PKGBUILD now OK? (y/N) > ' pkgbuild_edit_ok
if test $pkgbuild_edit_ok != "y"
continue
end
@ -50,17 +24,6 @@ for pkg in (auracle outdated | cut -d' ' -f1)
continue
end
end
set_color -o blue
echo "Building and installing $pkg..."
set_color normal
makepkg -Ccsir
set_color -o blue
echo "Finished installing $pkg."
set_color normal
cd ..
end
set_color -o blue
echo "Done updating packages."
set_color normal
cd $pwd