summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-11 23:08:42 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-11 23:13:19 (EDT)
commit7ae90a0bacbfbbd4c3bc9d716b7f52e2e90e07fe (patch)
treed9de1f4cb69e71c83cee25cfbfd9fff11e3f6798 /src
parentbc8c9b9e2b8553355a785f486367dcd3fdda5e4c (diff)
version: New command.
Diffstat (limited to 'src')
-rw-r--r--src/pro-archman.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pro-archman.sh b/src/pro-archman.sh
index 8996367..8df75f1 100644
--- a/src/pro-archman.sh
+++ b/src/pro-archman.sh
@@ -22,6 +22,8 @@
set -u
# Constant global variables
+PACKAGE_NAME='@@PACKAGE_NAME@@'
+PACKAGE_VERSION='@@PACKAGE_VERSION@@'
PKGLIBDIR='@@PKGLIBDIR@@'
PKGLIBCMDDIR='@@PKGLIBCMDDIR@@'
PKGLIBCMD='@@PKGLIBCMD@@'
@@ -123,7 +125,7 @@ get_options()
{
local opt=
- while getopts 'b:h' opt; do
+ while getopts 'b:hV' opt; do
case "${opt}" in
'b')
opt_base_dir="$(cd "${OPTARG}" && pwd)"
@@ -131,6 +133,9 @@ get_options()
'h')
opt_cmd='help'
;;
+ 'V')
+ opt_cmd='version'
+ ;;
esac
done