diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-26 22:17:48 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-26 22:17:48 -0400 |
commit | ef31ee5cf6aabfdf4730ac64c8b004be238df1a8 (patch) | |
tree | 6c157899622ccac2c26a56582c72f657e82fbdd3 /sway/main.c | |
parent | 4df64127e951cb6f13d65fc667c10ffc0f4a4dbd (diff) | |
parent | 54b51cbe6ab191618c33c4e928d79ea97d31a267 (diff) |
Merge pull request #139 from Luminarys/master
Added in better versioning info
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 4 |
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 |