aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-04-26 10:18:03 -0400
committerGitHub <noreply@github.com>2017-04-26 10:18:03 -0400
commit3c1fc00f12e2777f6349a5d671b8d66c5997eb2b (patch)
tree5bcca08aad4e65d288abf218b50172a3137d2d71 /swaybar
parent586eca0e4cd9481cabdd1cedef53145a0d07bc72 (diff)
parent173b3385675b24fb7a55f2d212e2958970f6e6d3 (diff)
Merge pull request #1194 from snoack/version
Add -DVERSION flag for release version numbers
Diffstat (limited to 'swaybar')
-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) {
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