finally skip perl & openssl docs
This commit is contained in:
24
src/main.cc
24
src/main.cc
@@ -133,11 +133,29 @@ void install_package(const std::string &name, DB &db) {
|
||||
} catch (std::out_of_range &) {
|
||||
}
|
||||
|
||||
bool do_install = true;
|
||||
try {
|
||||
if (step.get_one("do_install").value == "no") {
|
||||
do_install = false;
|
||||
}
|
||||
} catch (std::out_of_range &) {
|
||||
}
|
||||
|
||||
Util::shell_command("./configure --prefix=/usr " + configure_flags,
|
||||
src_path);
|
||||
Util::shell_command("make -j " + jobs, src_path);
|
||||
Util::shell_command("make install", src_path);
|
||||
if (do_install) {
|
||||
Util::shell_command("make install", src_path);
|
||||
}
|
||||
} else if (step_type == "make") {
|
||||
bool do_install = true;
|
||||
try {
|
||||
if (step.get_one("do_install").value == "no") {
|
||||
do_install = false;
|
||||
}
|
||||
} catch (std::out_of_range &) {
|
||||
}
|
||||
|
||||
std::string make_flags;
|
||||
try {
|
||||
make_flags = step.get_one("make_flags").value;
|
||||
@@ -150,7 +168,9 @@ void install_package(const std::string &name, DB &db) {
|
||||
}
|
||||
|
||||
Util::shell_command("make " + make_flags + " -j " + jobs, src_path);
|
||||
Util::shell_command("make install " + install_flags, src_path);
|
||||
if (do_install) {
|
||||
Util::shell_command("make install " + install_flags, src_path);
|
||||
}
|
||||
} else if (step_type == "cmake") {
|
||||
std::string configure_flags;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user