aboutsummaryrefslogtreecommitdiff
path: root/upkg
diff options
context:
space:
mode:
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
}