]> spindle.queued.net Git - midori/commitdiff
Use 'git describe' to generate the git version string
authorChristian Dywan <christian@twotoasts.de>
Wed, 14 Jul 2010 21:48:45 +0000 (23:48 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 14 Jul 2010 22:06:15 +0000 (00:06 +0200)
wscript

diff --git a/wscript b/wscript
index c21dc807f5c1e2d6f3413374c959cb85a4ab3692..ae358ab834d1c3fb4c3e7dcd420456a1305e68ba 100644 (file)
--- a/wscript
+++ b/wscript
@@ -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