Version number, name, and build details.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2015-08-08 20:45:49 +09:30
parent 6883d28f6d
commit 1cb147c5b8
25 changed files with 74 additions and 3 deletions

11
version.c Normal file
View File

@@ -0,0 +1,11 @@
#include "version.h"
#include "gen_version.h"
#include <stdio.h>
char *version_and_exit(const void *unused)
{
printf("%s\n"
"aka. %s\n"
"Built with: %s\n", VERSION, VERSION_NAME, BUILD_FEATURES);
exit(0);
}