aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);