diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-02-25 23:22:09 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-02-25 23:22:09 +0100 |
commit | 57bcec6cac7535c4cb06814c95a92ffd23fddc06 (patch) | |
tree | ad129d3ee95aadfd8b4e382150d48a51d429ed37 /src/blogc-make/settings.c | |
parent | 4970112199d967185c9e19fcd019924b72fdf845 (diff) | |
download | blogc-57bcec6cac7535c4cb06814c95a92ffd23fddc06.tar.gz blogc-57bcec6cac7535c4cb06814c95a92ffd23fddc06.tar.bz2 blogc-57bcec6cac7535c4cb06814c95a92ffd23fddc06.zip |
make: keep backward compatibility with [copy_files]
Diffstat (limited to 'src/blogc-make/settings.c')
-rw-r--r-- | src/blogc-make/settings.c | 7 |
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); |