summaryrefslogtreecommitdiff
path: root/sway/main.c
diff options
context:
space:
mode:
authorLuminarys <[email protected]>2015-08-26 21:13:53 -0500
committerLuminarys <[email protected]>2015-08-26 21:13:53 -0500
commit42de135c3a58ef0d58e96efb9ec9b75f2d1b5490 (patch)
tree47de34f845e1d4c43d06f1a5704f5d4764b34d31 /sway/main.c
parent4df64127e951cb6f13d65fc667c10ffc0f4a4dbd (diff)
Added in better versioning info
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/main.c b/sway/main.c
index 3591e7ff..01c19074 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -78,8 +78,8 @@ int main(int argc, char **argv) {
debug = 1;
break;
case 'v': // version
-#ifdef SWAY_GIT_VERSION
- fprintf(stdout, "sway build %s\n", SWAY_GIT_VERSION);
+#if defined SWAY_GIT_VERSION && defined SWAY_GIT_BRANCH && defined SWAY_VERSION_DATE
+ fprintf(stdout, "sway version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH);
#else
fprintf(stdout, "version not detected\n");
#endif