summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common3
-rwxr-xr-xsrc/monkeysphere5
-rwxr-xr-xsrc/monkeysphere-server5
3 files changed, 13 insertions, 0 deletions
diff --git a/src/common b/src/common
index f6000d3..eb3a083 100644
--- a/src/common
+++ b/src/common
@@ -19,6 +19,9 @@
SYSCONFIGDIR=${MONKEYSPHERE_SYSCONFIGDIR:-"/etc/monkeysphere"}
export SYSCONFIGDIR
+# monkeysphere version
+VERSION=__VERSION__
+
########################################################################
### UTILITY FUNCTIONS
diff --git a/src/monkeysphere b/src/monkeysphere
index c003706..98531d2 100755
--- a/src/monkeysphere
+++ b/src/monkeysphere
@@ -45,6 +45,7 @@ subcommands:
--length (-l) BITS key length in bits (2048)
--expire (-e) EXPIRE date to expire
subkey-to-ssh-agent (s) store authentication subkey in ssh-agent
+ version (v) show version number
help (h,?) this help
EOF
@@ -365,6 +366,10 @@ case $COMMAND in
subkey_to_ssh_agent "$@"
;;
+ 'version'|'v')
+ echo "$VERSION"
+ ;;
+
'--help'|'help'|'-h'|'h'|'?')
usage
;;
diff --git a/src/monkeysphere-server b/src/monkeysphere-server
index 7d7578d..ba3fa8d 100755
--- a/src/monkeysphere-server
+++ b/src/monkeysphere-server
@@ -66,6 +66,7 @@ subcommands:
gpg-authentication-cmd CMD gnupg-authentication command
+ version (v) show version number
help (h,?) this help
EOF
@@ -1066,6 +1067,10 @@ case $COMMAND in
gpg_authentication_cmd "$@"
;;
+ 'version'|'v')
+ echo "$VERSION"
+ ;;
+
'--help'|'help'|'-h'|'h'|'?')
usage
;;