]> git.cworth.org Git - notmuch/commit
Derive version numbers from git
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 8 Apr 2010 11:49:22 +0000 (13:49 +0200)
committerCarl Worth <cworth@cworth.org>
Sat, 10 Apr 2010 02:05:26 +0000 (19:05 -0700)
commit09aaff13245457f6fcb5c6c5b7d9fdef69567a23
treec306c7f8849483f254e16d4c12f5745732ad2d64
parent3780572bb31c394a14e15bbfc3e113978eec7188
Derive version numbers from git

I often have several versions of notmuch compiled and it would be very
helpful to be able to distinguish between them. Git has a very nice
feature to make intermediate numbering automatic and unambiguous so
let's use it here.

For tagged versions, the version is the name of the tag, for
intermediate versions, the unique ID of the commit is appended to the
tag name.

When notmuch is compiled from a release tarball, there is no git
repository and therefore the tarball contains a special file 'version',
which contains the version of release tarball.

To create a new release one has to run 'make release VERSION=X.Y'.
Makefile.local