forked from mirrors/kore
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.
This commit is contained in:
parent
46633e3978
commit
68f5e33768
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue