mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Added in build version based on git hash
This commit is contained in:
parent
e121258426
commit
38cfdf99f4
2 changed files with 19 additions and 1 deletions
|
|
@ -78,7 +78,11 @@ int main(int argc, char **argv) {
|
|||
debug = 1;
|
||||
break;
|
||||
case 'v': // version
|
||||
// todo
|
||||
#ifdef SWAY_GIT_VERSION
|
||||
fprintf(stdout, "sway build %s\n", SWAY_GIT_VERSION);
|
||||
#else
|
||||
fprintf(stdout, "version not detected\n");
|
||||
#endif
|
||||
exit(0);
|
||||
break;
|
||||
case 'V': // verbose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue