blob: 01954126e5ae53934f0337e7dc7d772b6cb19b67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <filesystem>
#include "lua_build.cc"
void build(std::filesystem::path build_dir) {
if (build_dir != std::filesystem::current_path().string()) {
std::filesystem::current_path(build_dir);
}
for (auto const &dir_entry : std::filesystem::directory_iterator(fs::current_path().string())) {
if (dir_entry.path().filename() == "bldit") { system("./bldit"); }
else { lua_build(build_dir.c_str()); }
}
}
|