aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
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;