about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-09-17 00:59:37 +0100
committerJames Booth <boothj5@gmail.com>2013-09-17 00:59:37 +0100
commitd782b00711ddb3925738626e5509191932164975 (patch)
tree76c7381b9d749249fe55991504782e73ae556e4f /src
parente9361f834ae42e3218712d25f0d532dd1f1dc6b9 (diff)
downloadprofani-tty-d782b00711ddb3925738626e5509191932164975.tar.gz
Added git branch and revision to development builds
Diffstat (limited to 'src')
-rw-r--r--src/ui/console.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index fe15d73f..17e97ca3 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -40,6 +40,10 @@
 #include "xmpp/xmpp.h"
 #include "xmpp/bookmark.h"
 
+#ifdef HAVE_GIT_VERSION
+#include "gitversion.c"
+#endif
+
 static void _cons_splash_logo(void);
 void _show_roster_contacts(GSList *list, gboolean show_groups);
 
@@ -167,7 +171,11 @@ cons_about(void)
         win_print_time(console, '-');
 
         if (strcmp(PACKAGE_STATUS, "development") == 0) {
+#ifdef HAVE_GIT_VERSION
+            wprintw(console->win, "Welcome to Profanity, version %sdev.%s.%s\n", PACKAGE_VERSION, PROF_GIT_BRANCH, PROF_GIT_REVISION);
+#else
             wprintw(console->win, "Welcome to Profanity, version %sdev\n", PACKAGE_VERSION);
+#endif
         } else {
             wprintw(console->win, "Welcome to Profanity, version %s\n", PACKAGE_VERSION);
         }
@@ -1395,7 +1403,11 @@ _cons_splash_logo(void)
     wprintw(console->win, "\n");
     win_print_time(console, '-');
     if (strcmp(PACKAGE_STATUS, "development") == 0) {
+#ifdef HAVE_GIT_VERSION
+        wprintw(console->win, "Version %sdev.%s.%s\n", PACKAGE_VERSION, PROF_GIT_BRANCH, PROF_GIT_REVISION);
+#else
         wprintw(console->win, "Version %sdev\n", PACKAGE_VERSION);
+#endif
     } else {
         wprintw(console->win, "Version %s\n", PACKAGE_VERSION);
     }