From 77ec9dd19ae8445735781840c9b9b535afa0a12a Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Fri, 14 Aug 2015 01:22:40 -0300 Subject: main: added BLOGC_VERSION template variable --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/main.c b/src/main.c index 292c9ff..cf0fcd2 100644 --- a/src/main.c +++ b/src/main.c @@ -30,6 +30,10 @@ #include "renderer.h" #include "error.h" +#ifndef PACKAGE_VERSION +#define PACKAGE_VERSION "Unknown" +#endif + static void blogc_print_help(void) @@ -108,6 +112,7 @@ main(int argc, char **argv) b_slist_t *sources = NULL; b_trie_t *config = b_trie_new(free); + b_trie_insert(config, "BLOGC_VERSION", b_strdup(PACKAGE_VERSION)); for (unsigned int i = 1; i < argc; i++) { tmp = NULL; -- cgit v1.2.3-18-g5258