diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-08-14 01:22:40 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-08-14 01:22:40 -0300 |
commit | 77ec9dd19ae8445735781840c9b9b535afa0a12a (patch) | |
tree | ecd82942df153e5af60af047fde6f92dc46b32f0 /src/main.c | |
parent | 07d3a1f7a2bdfa4f5918b515d617eecbd6e081db (diff) | |
download | blogc-77ec9dd19ae8445735781840c9b9b535afa0a12a.tar.gz blogc-77ec9dd19ae8445735781840c9b9b535afa0a12a.tar.bz2 blogc-77ec9dd19ae8445735781840c9b9b535afa0a12a.zip |
main: added BLOGC_VERSION template variable
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |