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/build.c | |
| parent | 83d471f2c1d1b1fa6be51f41e4f1c36ab19d7094 (diff) | |
c rewrite
Diffstat (limited to 'src/build.c')
| -rw-r--r-- | src/build.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/build.c b/src/build.c new file mode 100644 index 0000000..a84a13a --- /dev/null +++ b/src/build.c @@ -0,0 +1,22 @@ +#include <stdio.h> +#include <string.h> +#include <unistd.h> + +#include "build.h" +#include "lua_build.h" +#include "vars.h" + +void build(Pkg pkg) { + char original_dir[MAX_PATH_LEN]; + getcwd(original_dir, MAX_PATH_LEN); + + if (strcmp(pkg.src, original_dir) != 0) { + chdir(pkg.src); + } + + if (lua_build(pkg.name, pkg.target, pkg.src)) { + return; + } + + printf("%sno usable build system was found\n", print_error); +}
\ No newline at end of file |
