]> git.notmuchmail.org Git - notmuch/blobdiff - Makefile.local
build system: remove dashes from git-describe generated version.
[notmuch] / Makefile.local
index 38f6c1742b92f80d2930dcbdd70b9ddf867d9fe5..2c07bd789df1d3f35fc60a09e33f7561172f4631 100644 (file)
@@ -17,7 +17,7 @@ ifneq ($(MAKECMDGOALS),release)
 ifneq ($(MAKECMDGOALS),release-message)
 ifneq ($(MAKECMDGOALS),pre-release)
 ifeq ($(IS_GIT),yes)
-VERSION:=$(shell git describe --match '[0-9.]*')
+VERSION:=$(shell git describe --match '[0-9.]*'|sed -e s/-/+/ -e s/-/~/)
 endif
 endif
 endif