diff options
author | 2015-08-25 22:04:57 -0500 | |
---|---|---|
committer | 2015-08-25 22:04:57 -0500 | |
commit | 38cfdf99f4c7cdf3e81a4b32fb8ccaf522c84e73 (patch) | |
tree | 89f423dbf6fb837d5c8c0a63e1efd52042cbae7f /sway | |
parent | longopt minor fix (diff) | |
download | sway-38cfdf99f4c7cdf3e81a4b32fb8ccaf522c84e73.tar.gz sway-38cfdf99f4c7cdf3e81a4b32fb8ccaf522c84e73.tar.zst sway-38cfdf99f4c7cdf3e81a4b32fb8ccaf522c84e73.zip |
Added in build version based on git hash
Diffstat (limited to 'sway')
-rw-r--r-- | sway/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c index afbdab33..0880cb8c 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -78,7 +78,11 @@ int main(int argc, char **argv) { | |||
78 | debug = 1; | 78 | debug = 1; |
79 | break; | 79 | break; |
80 | case 'v': // version | 80 | case 'v': // version |
81 | // todo | 81 | #ifdef SWAY_GIT_VERSION |
82 | fprintf(stdout, "sway build %s\n", SWAY_GIT_VERSION); | ||
83 | #else | ||
84 | fprintf(stdout, "version not detected\n"); | ||
85 | #endif | ||
82 | exit(0); | 86 | exit(0); |
83 | break; | 87 | break; |
84 | case 'V': // verbose | 88 | case 'V': // verbose |