]> git.cworth.org Git - notmuch/commitdiff
build system: remove dashes from git-describe generated version.
authorDavid Bremner <bremner@debian.org>
Thu, 13 Oct 2011 01:23:32 +0000 (22:23 -0300)
committerDavid Bremner <bremner@debian.org>
Fri, 28 Oct 2011 17:14:32 +0000 (14:14 -0300)
This makes it less confusing with released Debian versions, now that we have
non-native Debian versions.

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