aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-25 23:22:09 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-25 23:22:09 +0100
commit57bcec6cac7535c4cb06814c95a92ffd23fddc06 (patch)
treead129d3ee95aadfd8b4e382150d48a51d429ed37 /src/blogc-make
parent4970112199d967185c9e19fcd019924b72fdf845 (diff)
downloadblogc-57bcec6cac7535c4cb06814c95a92ffd23fddc06.tar.gz
blogc-57bcec6cac7535c4cb06814c95a92ffd23fddc06.tar.bz2
blogc-57bcec6cac7535c4cb06814c95a92ffd23fddc06.zip
make: keep backward compatibility with [copy_files]
Diffstat (limited to 'src/blogc-make')
-rw-r--r--src/blogc-make/settings.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/blogc-make/settings.c b/src/blogc-make/settings.c
index 0e80807..50092ac 100644
--- a/src/blogc-make/settings.c
+++ b/src/blogc-make/settings.c
@@ -72,6 +72,7 @@ static const char* list_sections[] = {
"posts",
"pages",
"copy",
+ "copy_files", // backward compatibility
"tags",
NULL,
};
@@ -160,9 +161,13 @@ bm_settings_parse(const char *content, size_t content_len, bc_error_t **err)
rv->posts = bc_config_get_list(config, "posts");
rv->pages = bc_config_get_list(config, "pages");
- rv->copy = bc_config_get_list(config, "copy");
rv->tags = bc_config_get_list(config, "tags");
+ // this is for backward compatibility too.
+ rv->copy = bc_config_get_list(config, "copy");
+ if (rv->copy == NULL)
+ rv->copy = bc_config_get_list(config, "copy_files");
+
cleanup:
bc_config_free(config);