diff options
author | Jochen Dolze <vdr@dolze.de> | 2013-10-13 14:32:38 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2013-10-13 14:32:38 +0200 |
commit | da9cda00be6d4c9c69cf7ff5506c867a38f42715 (patch) | |
tree | 7d110195d72642e27cd34d0b3b21bdc3c6fa284b | |
parent | de1511e90ad13cea2b66bf29ec7c8261eb3f76b6 (diff) | |
download | vdr-plugin-markad-da9cda00be6d4c9c69cf7ff5506c867a38f42715.tar.gz vdr-plugin-markad-da9cda00be6d4c9c69cf7ff5506c867a38f42715.tar.bz2 |
Added version handling to plugin and command Makefile
-rw-r--r-- | command/Makefile | 1 | ||||
-rw-r--r-- | plugin/Makefile | 1 |
2 files changed, 2 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: 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: |