Updates to update-tool

This commit is contained in:
Austen Adler 2017-01-13 00:42:26 -05:00
parent 6582eeabc1
commit 9a192a4852
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1

View File

@ -127,13 +127,15 @@ update-tool() {
while [[ "$RESP" != "q" ]]; do while [[ "$RESP" != "q" ]]; do
CMD=${RESP:0:1} CMD=${RESP:0:1}
case "$CMD" in case "$CMD" in
p) update;; u) update;;
l) layman -S ;; l) layman -S ;;
u) upgrade;; g) upgrade;;
e) etc-update;; e) etc-update;;
p) emerge -Av @preserved-rebuild;;
m) emerge -Av @module-rebuild;;
d) emerge -Ava --depclean;; d) emerge -Ava --depclean;;
h) haskell-updater -- --usepkg=n;; h) haskell-updater -- --usepkg=n;;
p) perl-cleaner --reallyall;; c) perl-cleaner --reallyall;;
y) python-updater;; y) python-updater;;
r) revdep-rebuild;; r) revdep-rebuild;;
q) return;; q) return;;
@ -143,17 +145,20 @@ update-tool() {
continue continue
fi fi
echo "Commands:" echo "Commands:"
echo "p: update" echo "u: update"
echo "l: layman -S" echo "l: layman -S"
echo "u: upgrade" echo "g: upgrade"
echo "e: etc-update" echo "e: etc-update"
echo "p: emerge @preserved-rebuild"
echo "m: emerge @module-rebuild"
echo "d: emerge --ask --depclean" echo "d: emerge --ask --depclean"
echo "h: haskell-updater -- --usepkg=n" echo "h: haskell-updater -- --usepkg=n"
echo "p: perl-cleaner --reallyall" echo "c: perl-cleaner --reallyall"
echo "y: python-updater" echo "y: python-updater"
echo "r: revdep-rebuild" echo "r: revdep-rebuild"
echo "q: quit" echo "q: quit"
echo -n "> " echo -n "> "
echo '\a'
read RESP read RESP
done done
} }