Use 'git describe' to generate the git version string

This commit is contained in:
Christian Dywan 2010-07-14 23:48:45 +02:00
parent 1b933a5da6
commit b5a4023a7d

View file

@ -35,9 +35,9 @@ APPNAME = 'midori'
VERSION = str (major) + '.' + str (minor) + '.' + str (micro)
try:
git = Utils.cmd_output (['git', 'rev-parse', '--short', 'HEAD'], silent=True)
git = Utils.cmd_output (['git', 'describe'], silent=True)
if git:
VERSION = (VERSION + '-' + git).strip ()
VERSION = git
except:
pass