From c3238e690a1f3254d282623e047f0124206de9b9 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 10 Jun 2020 19:42:04 -0400 Subject: cleanup, wip for eventual release --- upkg | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'upkg') diff --git a/upkg b/upkg index 7bfb42e..c2d64e3 100755 --- a/upkg +++ b/upkg @@ -1,5 +1,24 @@ #!/bin/bash +if [ "$1" = "--help" ]; then +cat < [ ...] + + is an installable Slackware package (.tgz, etc). + +If no given, the .info and SlackBuild in the current directory +are parsed to get a package filename. If this package exists, it will +be installed. + +Actual package installation is done with: + +upgradepkg --reinstall --install-new +EOF +exit 0 +fi + die() { echo "$( basename $0 ): $@" 1>&2 exit 1 @@ -64,4 +83,4 @@ if [ -z "$@" ]; then set "$found" fi -sudo upgradepkg --reinstall --install-new "$@" +sudo /sbin/upgradepkg --reinstall --install-new "$@" -- cgit v1.2.3