diff options
author | 2017-04-26 10:18:03 -0400 | |
---|---|---|
committer | 2017-04-26 10:18:03 -0400 | |
commit | 3c1fc00f12e2777f6349a5d671b8d66c5997eb2b (patch) | |
tree | 5bcca08aad4e65d288abf218b50172a3137d2d71 /swaymsg | |
parent | Fix link to dotfiles, closes #1193 (diff) | |
parent | Add -DVERSION flag for release version numbers (diff) | |
download | sway-3c1fc00f12e2777f6349a5d671b8d66c5997eb2b.tar.gz sway-3c1fc00f12e2777f6349a5d671b8d66c5997eb2b.tar.zst sway-3c1fc00f12e2777f6349a5d671b8d66c5997eb2b.zip |
Merge pull request #1194 from snoack/version
Add -DVERSION flag for release version numbers
Diffstat (limited to 'swaymsg')
-rw-r--r-- | swaymsg/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c index 2d2b0f60..efd0ec25 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c | |||
@@ -230,11 +230,7 @@ int main(int argc, char **argv) { | |||
230 | cmdtype = strdup(optarg); | 230 | cmdtype = strdup(optarg); |
231 | break; | 231 | break; |
232 | case 'v': | 232 | case 'v': |
233 | #if defined SWAY_GIT_VERSION && defined SWAY_GIT_BRANCH && defined SWAY_VERSION_DATE | 233 | fprintf(stdout, "sway version " SWAY_VERSION "\n"); |
234 | fprintf(stdout, "sway version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH); | ||
235 | #else | ||
236 | fprintf(stdout, "version not detected\n"); | ||
237 | #endif | ||
238 | exit(EXIT_SUCCESS); | 234 | exit(EXIT_SUCCESS); |
239 | break; | 235 | break; |
240 | default: | 236 | default: |