Browse Source

termux-tools: Allow shorter forms in packages

android-5
Fredrik Fornwall 8 years ago
parent
commit
9d99cc6543
  1. 2
      packages/termux-tools/build.sh
  2. 18
      packages/termux-tools/packages

2
packages/termux-tools/build.sh

@ -1,6 +1,6 @@
TERMUX_PKG_HOMEPAGE=https://termux.com/ TERMUX_PKG_HOMEPAGE=https://termux.com/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux" TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_VERSION=0.39 TERMUX_PKG_VERSION=0.40
TERMUX_PKG_PLATFORM_INDEPENDENT=yes TERMUX_PKG_PLATFORM_INDEPENDENT=yes
TERMUX_PKG_CONFFILES="etc/motd" TERMUX_PKG_CONFFILES="etc/motd"

18
packages/termux-tools/packages

@ -22,15 +22,15 @@ CMD="$1"
shift 1 shift 1
case "$CMD" in case "$CMD" in
help) show_help;; h*) show_help;;
install) apt update; apt install $@;; i*) apt update; apt install $@;;
list-all) apt list $@;; list-a*) apt list $@;;
list-installed) apt list --installed $@;; list-i*) apt list --installed $@;;
reinstall) apt install --reinstall $@;; re*) apt install --reinstall $@;;
search) apt update; apt search $@;; se*) apt update; apt search $@;;
show) apt show $@;; sh*) apt show $@;;
uninstall|remove) apt remove $@;; un*|rem*|rm|del*) apt remove $@;;
update|upgrade) apt update; apt full-upgrade;; up*) apt update; apt full-upgrade;;
*) echo "Unknown command: '$CMD' (run 'packages help' for usage information)";; *) echo "Unknown command: '$CMD' (run 'packages help' for usage information)";;
esac esac

Loading…
Cancel
Save