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_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_VERSION=0.39
TERMUX_PKG_VERSION=0.40
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
TERMUX_PKG_CONFFILES="etc/motd"

18
packages/termux-tools/packages

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

Loading…
Cancel
Save