aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2020-05-25 18:57:48 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2020-05-25 18:57:48 +0200
commitc2d178d0f089d4d5f9758de5bb2b8a39a4857f27 (patch)
treede1e45bf61db37a4bb2a9d20913fa811d5adc122 /src/blogc-make
parent8e12ae57ebe87d25c2c34ec304047fec3013da85 (diff)
downloadblogc-c2d178d0f089d4d5f9758de5bb2b8a39a4857f27.tar.gz
blogc-c2d178d0f089d4d5f9758de5bb2b8a39a4857f27.tar.bz2
blogc-c2d178d0f089d4d5f9758de5bb2b8a39a4857f27.zip
make: rebuild atom feeds on atom template changes
Diffstat (limited to 'src/blogc-make')
-rw-r--r--src/blogc-make/rules.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/blogc-make/rules.c b/src/blogc-make/rules.c
index 06223c0..3e44554 100644
--- a/src/blogc-make/rules.c
+++ b/src/blogc-make/rules.c
@@ -172,7 +172,8 @@ atom_exec(bm_ctx_t *ctx, bc_slist_t *outputs, bc_trie_t *args)
bm_filectx_t *fctx = l->data;
if (fctx == NULL)
continue;
- if (bm_rule_need_rebuild(ctx->posts_fctx, ctx->settings_fctx, NULL, NULL,
+ if (bm_rule_need_rebuild(ctx->posts_fctx, ctx->settings_fctx, NULL,
+ ctx->atom_template_tmp ? NULL : ctx->atom_template_fctx,
fctx, false))
{
rv = bm_exec_blogc(ctx, variables, NULL, true, NULL, ctx->atom_template_fctx,
@@ -238,7 +239,8 @@ atom_tags_exec(bm_ctx_t *ctx, bc_slist_t *outputs, bc_trie_t *args)
bc_trie_insert(variables, "FILTER_TAG",
bc_strdup(ctx->settings->tags[i]));
- if (bm_rule_need_rebuild(ctx->posts_fctx, ctx->settings_fctx, NULL, NULL,
+ if (bm_rule_need_rebuild(ctx->posts_fctx, ctx->settings_fctx, NULL,
+ ctx->atom_template_tmp ? NULL : ctx->atom_template_fctx,
fctx, false))
{
rv = bm_exec_blogc(ctx, variables, NULL, true, NULL, ctx->atom_template_fctx,