2023-04-21 14:26:02 +02:00
|
|
|
//! Build script for BurritOS.
|
|
|
|
//!
|
|
|
|
//! Moves files from the assets folder to the target directory
|
|
|
|
//! and runs `make all`.
|
|
|
|
|
|
|
|
use std::process::Command;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut make_all = Command::new("make");
|
|
|
|
make_all.arg("all");
|
|
|
|
println!("{:?}", make_all.output().unwrap());
|
|
|
|
|
|
|
|
let mut create_target_folder = Command::new("mkdir");
|
|
|
|
create_target_folder.args([
|
|
|
|
"-p",
|
2023-04-21 14:46:06 +02:00
|
|
|
"target/doc/assets/"
|
2023-04-21 14:26:02 +02:00
|
|
|
]);
|
|
|
|
println!("{:?}", create_target_folder.output().unwrap());
|
|
|
|
|
|
|
|
let mut copy_logo = Command::new("cp");
|
|
|
|
copy_logo.args([
|
|
|
|
"assets/logo/logo.svg",
|
2023-04-21 14:46:06 +02:00
|
|
|
"target/doc/assets/logo.svg"
|
2023-04-21 14:26:02 +02:00
|
|
|
]);
|
|
|
|
println!("{:?}", copy_logo.output().unwrap());
|
|
|
|
}
|