Simplify naming (versioning) of non-release tig tarball and rpm file
authorJakub Narebski <jnareb@gmail.com>
Fri, 22 Jun 2007 21:39:42 +0000 (23:39 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 22 Jun 2007 22:18:30 +0000 (00:18 +0200)
commit276346b0d0f2797e971dcca8f4912dc78dc3ff87
tree2ccec03031a783b3bc0e7fa1d6c80a1ff1a1159b
parent1b48a10d72621017541c31d91f9bc8bbd4cae7a2
Simplify naming (versioning) of non-release tig tarball and rpm file

Use the tag part of git-describe output, with `tig-' prefix stripped
off, as version number. Use number of commits since given tag as
release number, using 0 if we are at tagged version, and adding
'.dirty' suffix if working directory is dirty. Do not use 'g<sha 1>'
part of git-describe output.

For example, when git-describe output was tig-0.7-8-g26d0386, before
this commit tarball was named tig-0.7.8.g26d0386.tar.gz and rpm was
named tig-0.7.8.g26d0386-1.src.rpm (for dirty tree tarball was
tig-0.7.8.g26d0386.dirty.tar.gz), now tarball is named
tig-0.7-8.tar.gz and rpm is named tig-0.7-8.src.rpm (for dirty tree
tarball is tig-0.7-8.dirty.tar.gz).

[ Simplify the version extraction a bit. --jonas ]

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Makefile
contrib/tig.spec.in