aboutsummaryrefslogtreecommitdiff
path: root/upkg
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-09-25 04:09:35 -0400
committerB. Watson <urchlay@slackware.uk>2026-09-25 04:09:35 -0400
commitcc5bd20da4ba1f1adbf37cc68f2b071660a4cbe0 (patch)
tree28e283ab029935f2ed787a2c5ea3c004350e5f7c /upkg
parent84399c6e500e311f3bc7206fd8e9d335d6861a86 (diff)
downloadsbo-maintainer-tools-cc5bd20da4ba1f1adbf37cc68f2b071660a4cbe0.tar.gz
upkg: add --version.
Diffstat (limited to 'upkg')
-rwxr-xr-xupkg12
1 files changed, 9 insertions, 3 deletions
diff --git a/upkg b/upkg
index 0cbf74b..f1d5488 100755
--- a/upkg
+++ b/upkg
@@ -1,7 +1,10 @@
#!/bin/bash
+SELF="$( basename $0 )"
+VERSION=0.9.9
+
if [ "$1" = "--help" ]; then
-cat <<EOF
+ cat <<EOF
upkg - upgrade/install/reinstall a Slackware package.
Usage: upkg [package [<package> ...]]
@@ -16,11 +19,14 @@ Actual package installation is done with:
upgradepkg --reinstall --install-new <package>
EOF
-exit 0
+ exit 0
+elif [ "$1" = "--version" ]; then
+ echo $VERSION
+ exit 0
fi
die() {
- echo "$( basename $0 ): $@" 1>&2
+ echo "$SELF: $@" 1>&2
exit 1
}