mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Added in better versioning info
This commit is contained in:
parent
4df64127e9
commit
42de135c3a
2 changed files with 19 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue