diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-24 10:23:38 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-24 10:23:38 +0000 |
| commit | aa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 (patch) | |
| tree | 62f97b4c5acfdb98003568466f878fbd3d6b9dfb /src/lua_build.c | |
| parent | 83d471f2c1d1b1fa6be51f41e4f1c36ab19d7094 (diff) | |
c rewrite
Diffstat (limited to 'src/lua_build.c')
| -rw-r--r-- | src/lua_build.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lua_build.c b/src/lua_build.c new file mode 100644 index 0000000..6f7c571 --- /dev/null +++ b/src/lua_build.c @@ -0,0 +1,27 @@ +#include <stdio.h> +#include <stdbool.h> + +#include "lua_build.h" +#include "lua_state.h" +#include "vars.h" + +bool lua_build(const char *repository, const char *target, const char *path) { + printf("%sattempting to use build function specified in 'repositories.%s'...\n", + print_pkgit, repository); + + if (repo_build(repository)) { + return true; + } + + printf("%sattempting to use build function specified in 'bldit.lua'...\n", print_pkgit); + if (bldit(target)) { + return true; + } + + printf("%sattempting to use build functions specified in 'build_systems'...\n", print_pkgit); + if (config_build(path)) { + return true; + } + + return false; +}
\ No newline at end of file |
