blob: 7627e16c1d11a114e7da5c7956f3b3654b666d0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <functional>
#include "build_map.cc"
void build_pkg(std::filesystem::path build_dir) {
if (build_dir != fs::current_path().string()) {
fs::current_path(build_dir);
}
for (auto const &dir_entry :
fs::directory_iterator(fs::current_path().string())) {
for (auto build : builds) {
if (dir_entry.path().filename() == build.first) {
build.second();
}
}
}
}
|