mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-07 09:04:05 +00:00
Get version string from autoconf macros.
This commit is contained in:
parent
0060b65929
commit
e21b43fd31
5
lsyncd.c
5
lsyncd.c
@ -38,9 +38,6 @@
|
|||||||
#define LOG_NORMAL 2
|
#define LOG_NORMAL 2
|
||||||
#define LOG_ERROR 3
|
#define LOG_ERROR 3
|
||||||
|
|
||||||
#define VER_MAJOR 1
|
|
||||||
#define VER_MINOR 0
|
|
||||||
|
|
||||||
int loglevel = LOG_NORMAL;
|
int loglevel = LOG_NORMAL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -913,7 +910,7 @@ bool parse_options(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp("version", long_options[oi].name)) {
|
if (!strcmp("version", long_options[oi].name)) {
|
||||||
printf("Version: %d.%d\n", VER_MAJOR, VER_MINOR);
|
printf("Version: %s\n", VERSION);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user