mirror of
https://github.com/arabianq/build_msp.git
synced 2026-04-28 06:21:24 +00:00
cargo fmt
This commit is contained in:
@@ -1,40 +1,54 @@
|
|||||||
use std::process::Command;
|
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
use std::process::Command;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let switch_tools_dir = Path::new("switch-tools");
|
let switch_tools_dir = Path::new("switch-tools");
|
||||||
|
|
||||||
let aclocal_status = Command::new("aclocal")
|
let aclocal_status = Command::new("aclocal")
|
||||||
.current_dir(switch_tools_dir)
|
.current_dir(switch_tools_dir)
|
||||||
.status().
|
.status()
|
||||||
expect("Couldn't run aclocal");
|
.expect("Couldn't run aclocal");
|
||||||
|
|
||||||
let autoconf_status = Command::new("autoconf")
|
let autoconf_status = Command::new("autoconf")
|
||||||
.current_dir(switch_tools_dir)
|
.current_dir(switch_tools_dir)
|
||||||
.status().
|
.status()
|
||||||
expect("Couldn't run autoconf");
|
.expect("Couldn't run autoconf");
|
||||||
|
|
||||||
let automake_status = Command::new("automake")
|
let automake_status = Command::new("automake")
|
||||||
.current_dir(switch_tools_dir)
|
.current_dir(switch_tools_dir)
|
||||||
.arg("--add-missing")
|
.arg("--add-missing")
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
.status().
|
.status()
|
||||||
expect("Couldn't run automake");
|
.expect("Couldn't run automake");
|
||||||
|
|
||||||
let conf_status = Command::new("./configure")
|
let conf_status = Command::new("./configure")
|
||||||
.current_dir(switch_tools_dir)
|
.current_dir(switch_tools_dir)
|
||||||
.status().
|
.status()
|
||||||
expect("Couldn't run configure");
|
.expect("Couldn't run configure");
|
||||||
|
|
||||||
let make_status = Command::new("make")
|
let make_status = Command::new("make")
|
||||||
.current_dir(switch_tools_dir)
|
.current_dir(switch_tools_dir)
|
||||||
.status()
|
.status()
|
||||||
.expect("Couldn't run make");
|
.expect("Couldn't run make");
|
||||||
|
|
||||||
assert!(aclocal_status.success(), "Something went wrong while building switch-tools");
|
assert!(
|
||||||
assert!(autoconf_status.success(), "Something went wrong while building switch-tools");
|
aclocal_status.success(),
|
||||||
assert!(automake_status.success(), "Something went wrong while building switch-tools");
|
"Something went wrong while building switch-tools"
|
||||||
assert!(conf_status.success(), "Something went wrong while building switch-tools");
|
);
|
||||||
assert!(make_status.success(), "Something went wrong while building switch-tools");
|
assert!(
|
||||||
|
autoconf_status.success(),
|
||||||
|
"Something went wrong while building switch-tools"
|
||||||
|
);
|
||||||
|
assert!(
|
||||||
|
automake_status.success(),
|
||||||
|
"Something went wrong while building switch-tools"
|
||||||
|
);
|
||||||
|
assert!(
|
||||||
|
conf_status.success(),
|
||||||
|
"Something went wrong while building switch-tools"
|
||||||
|
);
|
||||||
|
assert!(
|
||||||
|
make_status.success(),
|
||||||
|
"Something went wrong while building switch-tools"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user