mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-03 07:45:17 +00:00
make: Generate crtools version from Makefile definition
This allows us to have a unique place where version lives and what is more important other subsystems (such as docs generation) may reuse version definitions. At moment EXTRA (which corresponds kernels -rc tag) and NAME is not yet used, but I desided to put them in place for future needs. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
7d8b5da7d6
commit
90fbbabb34
@@ -21,6 +21,7 @@
|
||||
#include "files.h"
|
||||
#include "sk-inet.h"
|
||||
#include "net.h"
|
||||
#include "version.h"
|
||||
|
||||
struct cr_options opts;
|
||||
|
||||
@@ -226,7 +227,7 @@ int main(int argc, char *argv[])
|
||||
opts.handle_file_locks = true;
|
||||
break;
|
||||
case 'V':
|
||||
pr_msg("Version: %d.%d\n", CRIU_VERSION_MAJOR, CRIU_VERSION_MINOR);
|
||||
pr_msg("Version: %s\n", version);
|
||||
return 0;
|
||||
case 'h':
|
||||
default:
|
||||
|
Reference in New Issue
Block a user