From 7ae90a0bacbfbbd4c3bc9d716b7f52e2e90e07fe Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 11 Oct 2013 23:08:42 -0400 Subject: version: New command. --- (limited to 'src') 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 -- cgit v0.9.1