From 9c3065d9cfadd860eea1d96765c642c5a529d9d4 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sat, 10 Mar 2018 23:42:31 +0100 Subject: make: pass TAG_CLOUD variable to blogc. this variable includes all the tags configured in blogcfile(5) as a space-separated string. --- src/blogc-make/exec.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c index 551c7d7..a324d47 100644 --- a/src/blogc-make/exec.c +++ b/src/blogc-make/exec.c @@ -235,6 +235,12 @@ bm_exec_build_blogc_cmd(const char *blogc_bin, bm_settings_t *settings, bc_string_append(rv, blogc_bin); if (settings != NULL) { + if (settings->tags != NULL) { + char *tags = bc_strv_join(settings->tags, " "); + bc_string_append_printf(rv, " -D TAG_CLOUD='%s'", tags); + free(tags); + } + bc_trie_foreach(settings->global, (bc_trie_foreach_func_t) list_variables, rv); } -- cgit v1.2.3-18-g5258