aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsbrun4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbrun b/sbrun
index 35d0a79..90df9e0 100755
--- a/sbrun
+++ b/sbrun
@@ -95,6 +95,8 @@ Usage: $SELF [-option [-option ...]] [script] [variable=value ...]
-H, --long-help
Show long help message and exit.
--man Format the long help message as a man page, on stdout.
+--version
+ Print version number and exit.
script
Run this script instead of the default .SlackBuild script.
variable=value ...
@@ -221,6 +223,8 @@ elif [ "$1" = "--long-help" ]; then
long_help ; exit 0
elif [ "$1" = "--man" ]; then
exec pod2man --stderr -s1 -csbo-maintainer-tools -r$VERSION $0 ; exit 0
+elif [ "$1" = "--version" ]; then
+ echo $VERSION ; exit 0
fi
# save original args, as we're going to permute them, below