diff options
author | Sebastian Noack <sebastian.noack@gmail.com> | 2017-04-26 11:29:30 +0200 |
---|---|---|
committer | Sebastian Noack <sebastian.noack@gmail.com> | 2017-04-26 15:56:46 +0200 |
commit | 173b3385675b24fb7a55f2d212e2958970f6e6d3 (patch) | |
tree | e824215c8066a9ed3072f73edc5afd5ce3d7ee80 /swaybar/main.c | |
parent | aca0710b9e3f77d65cd07f1e8e5ee9dfb7f0ae78 (diff) |
Add -DVERSION flag for release version numbers
Diffstat (limited to 'swaybar/main.c')
-rw-r--r-- | swaybar/main.c | 6 |
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) { bar_id = strdup(optarg); break; case 'v': -#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 + fprintf(stdout, "sway version " SWAY_VERSION "\n"); exit(EXIT_SUCCESS); break; case 'd': // Debug |