gebs_cmd_run_collect() for collecting command output, Add examples/commands.c

This commit is contained in:
kamkow1
2025-05-25 22:01:26 +02:00
parent 11e3ee039a
commit aad54edf84
3 changed files with 102 additions and 0 deletions

5
gebs.c
View File

@ -17,6 +17,11 @@ int main(int argc, char ** argv)
if (GEBS_CMD("gcc", "-ggdb", "-o", "build/arena", "example/arena.c") != 0)
return 1;
}
if (gebs_needs_rebuild_many("build/commands", "example/commands.c", "gebs.h")) {
if (GEBS_CMD("gcc", "-ggdb", "-o", "build/commands", "example/commands.c") != 0) {
return 1;
}
}
return 0;
}