diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-01-30 01:53:38 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-01-30 01:53:38 +0100 |
commit | 8ab79c1e2773540f0188ba33da01fb7fb7a4c7f6 (patch) | |
tree | c6203471bb270b6aa2981e2c016431486626d514 /src/blogc-make/ctx.c | |
parent | 306e29bcfa7d963fb4841829227a1e56360bc75d (diff) | |
download | blogc-8ab79c1e2773540f0188ba33da01fb7fb7a4c7f6.tar.gz blogc-8ab79c1e2773540f0188ba33da01fb7fb7a4c7f6.tar.bz2 blogc-8ab79c1e2773540f0188ba33da01fb7fb7a4c7f6.zip |
make: improved clean rule
Diffstat (limited to 'src/blogc-make/ctx.c')
-rw-r--r-- | src/blogc-make/ctx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/blogc-make/ctx.c b/src/blogc-make/ctx.c index 2a4426d..39f1bf4 100644 --- a/src/blogc-make/ctx.c +++ b/src/blogc-make/ctx.c @@ -102,12 +102,10 @@ bm_ctx_new(const char *settings_file, bc_error_t **err) const char *output_dir = bc_trie_lookup(settings->settings, "output_dir"); if (output_dir[0] == '/') { - rv->output_dir = realpath(output_dir, NULL); + rv->output_dir = bc_strdup(output_dir); } else { - char *tmp = bc_strdup_printf("%s/%s", rv->root_dir, output_dir); - rv->output_dir = realpath(tmp, NULL); - free(tmp); + rv->output_dir = bc_strdup_printf("%s/%s", rv->root_dir, output_dir); } const char *template_dir = bc_trie_lookup(settings->settings, |