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.
This commit is contained in:
Bert Münnich
2018-06-09 11:33:30 +02:00
parent b78aaee9d7
commit 8bf1adcd9a
2 changed files with 13 additions and 3 deletions

View File

@@ -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)