X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fshare%2Fcommon;h=b2dcd35d98628ed56ba6472b78f7b7444ab8e396;hb=e71c7bb4dff26178f714cd0fcdbb3058effa4066;hp=5e0cb6a4a00ec1d5d79eb594f43f673f4239aabf;hpb=c32c51f0326fa1d27ad8aba929edcf79ffa3adda;p=monkeysphere.git diff --git a/src/share/common b/src/share/common index 5e0cb6a..b2dcd35 100644 --- a/src/share/common +++ b/src/share/common @@ -20,9 +20,6 @@ SYSCONFIGDIR=${MONKEYSPHERE_SYSCONFIGDIR:-"/etc/monkeysphere"} export SYSCONFIGDIR -# monkeysphere version -VERSION=0.23~pre - # default log level LOG_LEVEL="INFO" @@ -41,6 +38,11 @@ PROMPT="true" ######################################################################## ### UTILITY FUNCTIONS +# output version info +version() { + cat "${SYSSHAREDIR}/VERSION" +} + # failure function. exits with code 255, unless specified otherwise. failure() { [ "$1" ] && echo "$1" >&2