kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 818dd84acd5ba00adfbcada2d2eaf20a44c5d44f
parent e57a91a4e043e1566ec1017e7c57744c06592d28
Author: Joris Vink <joris@coders.se>
Date:   Fri,  1 Aug 2014 12:45:31 +0200

No longer generate .objs as a default for orbit create.

Diffstat:
src/orbit.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/orbit.c b/src/orbit.c @@ -90,7 +90,6 @@ static struct filegen gen_files[] = { static const char *gen_dirs[] = { "src", "conf", - ".objs", "static", NULL }; @@ -221,7 +220,6 @@ orbit_build(int argc, char **argv) orbit_vasprintf(&spath, "%s/.objs", rootdir); if (!orbit_dir_exists(spath)) orbit_mkdir(spath, 0755); - free(spath); TAILQ_FOREACH(cf, &source_files, list) { printf("compiling %s\n", cf->fpath); @@ -234,6 +232,11 @@ orbit_build(int argc, char **argv) if (unlink(cf->opath) == -1) printf("couldnt unlink %s\n", cf->opath); } + + if (rmdir(spath) == -1) + printf("couldn't rmdir %s\n", spath); + + free(spath); } static void