19 lines
481 B
Rust
19 lines
481 B
Rust
use std::process::Command;
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=sysroot");
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
println!(
|
|
"{}",
|
|
String::from_utf8(
|
|
Command::new("sh")
|
|
.arg("-c")
|
|
.arg("cd sysroot; tar cvf ../initrd.tar *")
|
|
.output()
|
|
.expect("failed to execute process")
|
|
.stdout
|
|
)
|
|
.expect("command output not valid utf8")
|
|
);
|
|
}
|