From 7286c9fc5b55df0499c7a8f28b5e61ec57e788cc Mon Sep 17 00:00:00 2001 From: gramanas Date: Thu, 27 Sep 2018 00:51:25 +0300 Subject: Add licence and version info --- src/ckinfo.h.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/ckinfo.h.in (limited to 'src/ckinfo.h.in') diff --git a/src/ckinfo.h.in b/src/ckinfo.h.in new file mode 100644 index 0000000..3b7f843 --- /dev/null +++ b/src/ckinfo.h.in @@ -0,0 +1,18 @@ +#ifndef CK_INFO_H +#define CK_INFO_H + +#include + +#define CK_MAJOR_VERSION @ck_MAJOR_VERSION@ +#define CK_MINOR_VERSION @ck_MINOR_VERSION@ + + +extern void print_version() { + printf("ck version %d.%d\n", CK_MAJOR_VERSION, CK_MINOR_VERSION); + printf("ck Copyright (C) 2018 gramanas\n\ +This program comes with ABSOLUTELY NO WARRANTY.\n\ +This is free software, and you are welcome to redistribute it under\n\ +certain condition. See the LICENCE file in the source tree for details.\n"); +} + +#endif /* CK_INFO_H */ -- cgit v1.2.3