dot

packages and services management
Log | Files | Refs | README

commit 73dde3eb8603d0652678433fd7b4ae939d529af7
parent 16adbdb8f0dacc3561dcf3fa5e9c2a3ab687272f
Author: Josuah <mail@josuah.net>
Date:   Wed, 13 Dec 2017 13:29:16 +0100

list available packages

Diffstat:
Mbin/pack | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/pack b/bin/pack @@ -13,7 +13,7 @@ case "$1" in IFS='' read -r url <$PKG/tar - curl -L "$url" | case "$url" in + curl -#L "$url" | case "$url" in (*.tgz|*.tar.gz) gzip -d - ;; (*.tbz|*.tar.bz2) bzip2 -d - ;; (*.txz|*.tar.xz) xz -d - ;; @@ -39,7 +39,7 @@ case "$1" in cd "$SRC" || exit 1 mkdir -p "$OPT" - [ -f "$PKG/build" ] && exec sh -e "$PKG/build" + [ -f "$PKG/build" ] && exec sh -ex "$PKG/build" [ -f "$PKG/config.mk" ] && cp "$PKG/config.mk" "$SRC" [ -f "$PKG/config.h" ] && cp "$PKG/config.h" "$SRC" @@ -57,7 +57,7 @@ case "$1" in find -L "$SYSROOT" -type l -exec rm {} + ;; (*) - printf 'usage: pack [tar | git | get | build | add | del] pkg\n' 1>&2 - exit 1 + printf 'usage: pack tar | git | get | build | add | del package\n\n' + COLUMNS=80 ls -C "$HOME/etc/pack" ;; esac