From 260232dab8e6cf94df1936c89f1bfcffb574c498 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 29 Oct 2017 17:56:02 -0400 Subject: Makefile.am: Always show commit count and ID in Git ver string --- diff --git a/Makefile.am b/Makefile.am index 5476d0d..773d449 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,7 +19,9 @@ if IN_GIT PACKAGE_VERSION_GIT = $$({ git describe --tags --dirty 2>/dev/null || \ - printf '%s' '$(PACKAGE_VERSION)'; } | sed 's|^.*/||') + printf '%s-g%s%s' \ + "$$(git rev-list --count HEAD)" \ + "$$(git describe --tags --dirty --always)"; } | sed 's|^.*/||') else PACKAGE_VERSION_GIT = $(PACKAGE_VERSION) endif -- cgit v0.9.1