aboutsummaryrefslogtreecommitdiff
path: root/src/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.c')
-rw-r--r--src/build.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/build.c b/src/build.c
index 66b9484..fd524ea 100644
--- a/src/build.c
+++ b/src/build.c
@@ -25,16 +25,15 @@
#include "build.h"
-#include "is_updated.h"
#include "lua_build.h"
#include "vars.h"
void build(Pkg pkg) {
- char cwd[MAX_PATH_LEN];
- getcwd(cwd, MAX_PATH_LEN);
- if (strcmp(pkg.src, cwd) != 0 && !pkg.is_local) chdir(pkg.src);
+ char cwd[MAX_PATH_LEN];
+ getcwd(cwd, MAX_PATH_LEN);
+ if (strcmp(pkg.src, cwd) != 0 && !pkg.is_local) chdir(pkg.src);
- if (lua_build(pkg.name, pkg.target, pkg.is_local ? cwd : pkg.src)) return;
- printf("%s no usable build system was found\n", print_error);
- exit(EXIT_FAILURE);
+ if (lua_build(pkg.name, pkg.target, pkg.is_local ? cwd : pkg.src)) return;
+ printf("%s no usable build system was found\n", print_error);
+ exit(EXIT_FAILURE);
} \ No newline at end of file