better handling of VERSION

This commit is contained in:
Lucien Cartier-Tilet 2020-09-13 16:57:05 +02:00
parent 2649e8d533
commit 1aa0cdb3d8
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 5 additions and 1 deletions

6
sent.c
View File

@ -23,6 +23,10 @@
#include "util.h"
#include "drw.h"
#ifndef VERSION
#define VERSION "1"
#endif
char *argv0;
/* macros */
@ -689,7 +693,7 @@ main(int argc, char *argv[])
ARGBEGIN {
case 'v':
fprintf(stderr, "sent-"VERSION"\n");
fprintf(stderr, "sent-%s\n", VERSION);
return 0;
default:
usage();