From: David Bremner <bremner@debian.org>
Date: Thu, 17 Nov 2011 16:40:50 +0000 (-0400)
Subject: build system: tweak VERSION so that debian-snapshot works for N.NN~rcN
X-Git-Tag: 0.10_rc2~3
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=299e187bdfae86538065acc6f7bc8d470cdfae21;p=notmuch

build system: tweak VERSION so that debian-snapshot works for N.NN~rcN

The problem was that the version is recovered from the git tag, which
has the ~ replaced by _. This broke the sequencing of version numbers.
---

diff --git a/Makefile.local b/Makefile.local
index 6ddef5c8..8b42136a 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -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.]*'|sed -e s/-/+/ -e s/-/~/)
+VERSION:=$(shell git describe --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/)
 endif
 endif
 endif