summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Noack <sebastian.noack@gmail.com>2017-04-26 11:29:30 +0200
committerSebastian Noack <sebastian.noack@gmail.com>2017-04-26 15:56:46 +0200
commit235e6b653db54f135a2ca621435771106c7d98c8 (patch)
tree25e82d8c74eeba89839117d68002f522bef4913c
parent595a19c3909b5d74d5b37c62674386fd1e8f4166 (diff)
Add -DVERSION flag for release version numbers
-rw-r--r--main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/main.c b/main.c
index 9b33aab..4759240 100644
--- a/main.c
+++ b/main.c
@@ -451,11 +451,7 @@ int main(int argc, char **argv) {
socket_path = optarg;
break;
case 'v':
-#if defined SWAY_GIT_VERSION && defined SWAY_GIT_BRANCH && defined SWAY_VERSION_DATE
- fprintf(stdout, "swaylock 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, "swaylock version " SWAY_VERSION "\n");
exit(EXIT_SUCCESS);
break;
case 'u':