]> git.notmuchmail.org Git - notmuch/commitdiff
build system: tweak VERSION so that debian-snapshot works for N.NN~rcN
authorDavid Bremner <bremner@debian.org>
Thu, 17 Nov 2011 16:40:50 +0000 (12:40 -0400)
committerDavid Bremner <bremner@debian.org>
Thu, 17 Nov 2011 16:40:50 +0000 (12:40 -0400)
The problem was that the version is recovered from the git tag, which
has the ~ replaced by _. This broke the sequencing of version numbers.

Makefile.local

index 6ddef5c883b56a5970a9e96cb25f5e417b5f3ae0..8b42136a640b1c80cef40a8829c8e148e7e6650e 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.]*'|sed -e s/-/+/ -e s/-/~/)
+VERSION:=$(shell git describe --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/)
 endif
 endif
 endif