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 68f5e3376839497cdf4fc004a8404eb0a0057bb7
parent 46633e39781743999f0418144a049819a51c7c4a
Author: Joris Vink <joris@coders.se>
Date:   Thu,  3 May 2018 21:27:52 +0200

kodev improvements.

Allow KORE_SOURCE and KORE_FLAVOR to come from the environment,
overriding any configured kore_source or kore_flavor configuration
setting from the build.conf for the application.

I wanted an easier way of switching between Kore trees while hacking
on some of my apps, this is it.

Diffstat:
src/cli.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/cli.c b/src/cli.c @@ -1553,6 +1553,7 @@ static void cli_buildopt_parse(const char *path) { FILE *fp; + const char *env; struct buildopt *bopt; char buf[BUFSIZ], *p, *t; @@ -1613,6 +1614,12 @@ parse_option: } fclose(fp); + + if ((env = getenv("KORE_SOURCE")) != NULL) + cli_buildopt_kore_source(NULL, env); + + if ((env = getenv("KORE_FLAVOR")) != NULL) + cli_buildopt_kore_flavor(NULL, env); } static struct buildopt *