bitque/jirs-bat/build.rs
2020-10-23 11:36:34 +02:00

17 lines
431 B
Rust

use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> {
std::fs::create_dir_all("./tmp")?;
std::process::Command::new("git")
.arg("clone")
.arg("https://github.com/sharkdp/bat.git")
.arg("./tmp/bat")
.spawn()?;
std::process::Command::new("git")
.args(&["submodule", "update", "--init", "--recursive"])
.current_dir("./tmp/bat")
.spawn()?;
Ok(())
}