summaryrefslogtreecommitdiff
path: root/command
diff options
context:
space:
mode:
Diffstat (limited to 'command')
-rw-r--r--command/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/command/Makefile b/command/Makefile
index 26a0751..6a445d0 100644
--- a/command/Makefile
+++ b/command/Makefile
@@ -7,6 +7,7 @@
### The version number of this plugin (taken from the main source file):
+$(shell GITVERSION=`git rev-parse --short HEAD 2> /dev/null`; if [ "$$GITVERSION" ]; then sed "s/\";/ ($$GITVERSION)\";/" ../version.dist > ../version.h; else cp ../version.dist ../version.h; fi)
VERSION = $(shell grep 'static const char \*VERSION *=' ../version.h | awk '{ print $$6 }' | sed -e 's/[";]//g')
### The C++ compiler and options: