diff options
| author | Christian Hesse <mail@eworm.de> | 2015-04-22 13:59:47 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-04-22 20:25:55 +0200 |
| commit | 6f0e3959c38ae1b09846bd6b5954a89e0556b914 (patch) | |
| tree | d5d43ae6fd9c8d963502e1930153ac9d1a132dd8 | |
| parent | 625244ab41640ec43d2621465ace81b4c242385b (diff) | |
| download | vis-6f0e3959c38ae1b09846bd6b5954a89e0556b914.tar.gz vis-6f0e3959c38ae1b09846bd6b5954a89e0556b914.tar.xz | |
get version from git
Signed-off-by: Christian Hesse <mail@eworm.de>
| -rw-r--r-- | config.mk | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,12 @@ # vis version -VERSION = devel +# we have no tags in git, so just use revision count an hash for now +GITREVCOUNT = "$(shell git rev-list --count master 2>/dev/null)" +GITHASH = "$(shell git log -1 --format="%h" 2>/dev/null)" +ifeq (${GITREVCOUNT},) + VERSION = devel +else + VERSION = "0.r${GITREVCOUNT}.g${GITHASH}" +endif # Customize below to fit your system |
