From da9cda00be6d4c9c69cf7ff5506c867a38f42715 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Sun, 13 Oct 2013 14:32:38 +0200 Subject: Added version handling to plugin and command Makefile --- plugin/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'plugin/Makefile') diff --git a/plugin/Makefile b/plugin/Makefile index 701ada1..2f51502 100644 --- a/plugin/Makefile +++ b/plugin/Makefile @@ -12,6 +12,7 @@ PLUGIN = markad ### 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: -- cgit v1.2.3