about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-09-17 01:28:35 +0100
committerJames Booth <boothj5@gmail.com>2013-09-17 01:28:35 +0100
commitee8ff948bfc1a21a10ea7e5bb34fffde781624e6 (patch)
tree4281e6df297974791d6221dd003bb48e02575bb0 /src/ui
parent90d5df9ef7c83066251e8e02dae33441f8bb0a4b (diff)
downloadprofani-tty-ee8ff948bfc1a21a10ea7e5bb34fffde781624e6.tar.gz
Use git revision in development strings
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 16c1d2ff..6b415a2b 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -22,6 +22,10 @@
 
 #include "config.h"
 
+#ifdef HAVE_GIT_VERSION
+#include "gitversion.c"
+#endif
+
 #include <stdlib.h>
 #include <string.h>
 #ifdef HAVE_LIBXSS
@@ -1375,7 +1379,14 @@ _ui_draw_win_title(void)
         g_string_append(version_str, " ");
         g_string_append(version_str, PACKAGE_VERSION);
         if (strcmp(PACKAGE_STATUS, "development") == 0) {
+#ifdef HAVE_GIT_VERSION
+            g_string_append(version_str, "dev.");
+            g_string_append(version_str, PROF_GIT_BRANCH);
+            g_string_append(version_str, ".");
+            g_string_append(version_str, PROF_GIT_REVISION);
+#else
             g_string_append(version_str, "dev");
+#endif
         }
     }