From 38cfdf99f4c7cdf3e81a4b32fb8ccaf522c84e73 Mon Sep 17 00:00:00 2001 From: Luminarys Date: Tue, 25 Aug 2015 22:04:57 -0500 Subject: Added in build version based on git hash --- sway/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sway/main.c') diff --git a/sway/main.c b/sway/main.c index afbdab33..0880cb8c 100644 --- a/sway/main.c +++ b/sway/main.c @@ -78,7 +78,11 @@ int main(int argc, char **argv) { debug = 1; break; case 'v': // version - // todo +#ifdef SWAY_GIT_VERSION + fprintf(stdout, "sway build %s\n", SWAY_GIT_VERSION); +#else + fprintf(stdout, "version not detected\n"); +#endif exit(0); break; case 'V': // verbose -- cgit v1.2.3