aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/main.c
diff options
context:
space:
mode:
authorLibravatar Sebastian Noack <sebastian.noack@gmail.com>2017-04-26 11:29:30 +0200
committerLibravatar Sebastian Noack <sebastian.noack@gmail.com>2017-04-26 15:56:46 +0200
commit173b3385675b24fb7a55f2d212e2958970f6e6d3 (patch)
treee824215c8066a9ed3072f73edc5afd5ce3d7ee80 /swaybar/main.c
parentMerge pull request #1187 from 4e554c4c/master (diff)
downloadsway-173b3385675b24fb7a55f2d212e2958970f6e6d3.tar.gz
sway-173b3385675b24fb7a55f2d212e2958970f6e6d3.tar.zst
sway-173b3385675b24fb7a55f2d212e2958970f6e6d3.zip
Add -DVERSION flag for release version numbers
Diffstat (limited to 'swaybar/main.c')
-rw-r--r--swaybar/main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/swaybar/main.c b/swaybar/main.c
index a2168743..0abd0755 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -63,11 +63,7 @@ int main(int argc, char **argv) {
63 bar_id = strdup(optarg); 63 bar_id = strdup(optarg);
64 break; 64 break;
65 case 'v': 65 case 'v':
66#if defined SWAY_GIT_VERSION && defined SWAY_GIT_BRANCH && defined SWAY_VERSION_DATE 66 fprintf(stdout, "sway version " SWAY_VERSION "\n");
67 fprintf(stdout, "sway version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH);
68#else
69 fprintf(stdout, "version not detected\n");
70#endif
71 exit(EXIT_SUCCESS); 67 exit(EXIT_SUCCESS);
72 break; 68 break;
73 case 'd': // Debug 69 case 'd': // Debug