mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
Don't include kore config in all builds just yet.
This commit is contained in:
parent
d078bdfb95
commit
0af7258c30
14
src/cli.c
14
src/cli.c
@ -679,12 +679,14 @@ cli_build(int argc, char **argv)
|
||||
if (cli_dir_exists(assets_path))
|
||||
cli_find_files(assets_path, cli_build_asset);
|
||||
|
||||
memset(&dp, 0, sizeof(dp));
|
||||
dp.d_type = DT_REG;
|
||||
printf("adding config %s\n", config);
|
||||
(void)snprintf(dp.d_name,
|
||||
sizeof(dp.d_name), "builtin_kore.conf");
|
||||
cli_build_asset(config, &dp);
|
||||
if (bopt->single_binary) {
|
||||
memset(&dp, 0, sizeof(dp));
|
||||
dp.d_type = DT_REG;
|
||||
printf("adding config %s\n", config);
|
||||
(void)snprintf(dp.d_name,
|
||||
sizeof(dp.d_name), "builtin_kore.conf");
|
||||
cli_build_asset(config, &dp);
|
||||
}
|
||||
|
||||
cli_file_writef(s_fd, "\n#endif\n");
|
||||
cli_file_close(s_fd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user