diff options
author | 2017-04-26 10:18:03 -0400 | |
---|---|---|
committer | 2017-05-01 10:24:45 -0400 | |
commit | 06446b611a521b78c65a8d584f2985f455e7a8b9 (patch) | |
tree | e824215c8066a9ed3072f73edc5afd5ce3d7ee80 /swaylock | |
parent | Merge pull request #1187 from 4e554c4c/master (diff) | |
download | sway-06446b611a521b78c65a8d584f2985f455e7a8b9.tar.gz sway-06446b611a521b78c65a8d584f2985f455e7a8b9.tar.zst sway-06446b611a521b78c65a8d584f2985f455e7a8b9.zip |
Merge pull request #1194 from snoack/version
Add -DVERSION flag for release version numbers
Diffstat (limited to 'swaylock')
-rw-r--r-- | swaylock/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/swaylock/main.c b/swaylock/main.c index 9b33aab9..47592409 100644 --- a/swaylock/main.c +++ b/swaylock/main.c | |||
@@ -451,11 +451,7 @@ int main(int argc, char **argv) { | |||
451 | socket_path = optarg; | 451 | socket_path = optarg; |
452 | break; | 452 | break; |
453 | case 'v': | 453 | case 'v': |
454 | #if defined SWAY_GIT_VERSION && defined SWAY_GIT_BRANCH && defined SWAY_VERSION_DATE | 454 | fprintf(stdout, "swaylock version " SWAY_VERSION "\n"); |
455 | fprintf(stdout, "swaylock version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH); | ||
456 | #else | ||
457 | fprintf(stdout, "version not detected\n"); | ||
458 | #endif | ||
459 | exit(EXIT_SUCCESS); | 455 | exit(EXIT_SUCCESS); |
460 | break; | 456 | break; |
461 | case 'u': | 457 | case 'u': |