diff options
author | Bert Münnich <ber.t@posteo.de> | 2018-06-09 11:33:30 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2018-06-09 11:33:30 +0200 |
commit | 8bf1adcd9a61cba1bcc9d35ac0b86a0785d2a7bd (patch) | |
tree | b538157bd5c08553152a73166891e65cc9dfdc78 /options.c | |
parent | b78aaee9d7412beedf47cbffda19cf874cff8eaf (diff) |
New version scheme
VERSION string between releases is last release suffixed with '+'.
Additionally, use output of git-describe instead of VERSION string, if it is
not empty.
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -19,6 +19,7 @@ #include "sxiv.h" #define _IMAGE_CONFIG #include "config.h" +#include "version.h" #include <stdlib.h> #include <string.h> @@ -36,7 +37,7 @@ void print_usage(void) void print_version(void) { - printf("sxiv %s - Simple X Image Viewer\n", VERSION); + puts("sxiv " VERSION); } void parse_options(int argc, char **argv) |