From 173b3385675b24fb7a55f2d212e2958970f6e6d3 Mon Sep 17 00:00:00 2001 From: Sebastian Noack Date: Wed, 26 Apr 2017 11:29:30 +0200 Subject: Add -DVERSION flag for release version numbers --- swaygrab/main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'swaygrab') diff --git a/swaygrab/main.c b/swaygrab/main.c index 3b8c5651..f901d318 100644 --- a/swaygrab/main.c +++ b/swaygrab/main.c @@ -201,11 +201,7 @@ int main(int argc, char **argv) { framerate = atoi(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; default: -- cgit v1.2.3