]> code.delx.au - pulseaudio/commit
build-sys: Add some smarts to version extraction from git tags.
authorColin Guthrie <cguthrie@mandriva.org>
Sat, 4 Dec 2010 17:21:27 +0000 (17:21 +0000)
committerColin Guthrie <cguthrie@mandriva.org>
Sat, 4 Dec 2010 17:34:03 +0000 (17:34 +0000)
commitba2e5f4442b8f933f37411cc625598cc72938d33
tree37260a058ae4ef5fcab58daf7e4c0cc114c9c63f
parent2a01bab3cc50a6ef02af3872a13d279ad996a0b1
build-sys: Add some smarts to version extraction from git tags.

When we are dealing with a tag against a commit with other tags applied,
then favour the first tag, not the last one. This allows us to tag a release
as e.g. v1.0, v1.1-dev and v2.0-dev and get a version of 1.0 rather than the
newer tags.

This also removes support for git versions that do not accept
the --match argument as we also now make use of the --contains arg
which was added at the same time (I think)

Additionally, the v variable is reset just incase it is already exported
in the shell for some reason.
git-version-gen