projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix how version number is saved/retrieved. Version is now stored in
[monkeysphere.git]
/
src
/
share
/
common
diff --git
a/src/share/common
b/src/share/common
index 0c26a91133c1cec3a4a15fb8162e294bdb58f5ba..b2dcd35d98628ed56ba6472b78f7b7444ab8e396 100644
(file)
--- a/
src/share/common
+++ b/
src/share/common
@@
-20,9
+20,6
@@
SYSCONFIGDIR=${MONKEYSPHERE_SYSCONFIGDIR:-"/etc/monkeysphere"}
export SYSCONFIGDIR
SYSCONFIGDIR=${MONKEYSPHERE_SYSCONFIGDIR:-"/etc/monkeysphere"}
export SYSCONFIGDIR
-# monkeysphere version
-VERSION=0.23.1
-
# default log level
LOG_LEVEL="INFO"
# default log level
LOG_LEVEL="INFO"
@@
-41,6
+38,11
@@
PROMPT="true"
########################################################################
### UTILITY FUNCTIONS
########################################################################
### UTILITY FUNCTIONS
+# output version info
+version() {
+ cat "${SYSSHAREDIR}/VERSION"
+}
+
# failure function. exits with code 255, unless specified otherwise.
failure() {
[ "$1" ] && echo "$1" >&2
# failure function. exits with code 255, unless specified otherwise.
failure() {
[ "$1" ] && echo "$1" >&2