1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 11:37:03 +00:00

Added a GIT tag into the version string.

This commit is contained in:
Rolf Ahrenberg
2012-02-26 22:54:45 +02:00
parent 49e3a9e23a
commit a73921041f
2 changed files with 10 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ PLUGIN = iptv
### The version number of this plugin (taken from the main source file):
VERSION = $(shell grep 'const char VERSION\[\] *=' $(PLUGIN).c | awk '{ print $$5 }' | sed -e 's/[";]//g')
GITTAG = $(shell git describe --always 2>/dev/null)
### The C++ compiler and options:
@@ -59,6 +60,10 @@ ifdef IPTV_DEBUG
DEFINES += -DDEBUG
endif
ifneq ($(strip $(GITTAG)),)
DEFINES += -DGITVERSION='"-GIT-$(GITTAG)"'
endif
.PHONY: all all-redirect
all-redirect: all