mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 21:23:30 +00:00
17 lines
360 B
Rust
17 lines
360 B
Rust
use std::path::Path;
|
|
|
|
fn main() {
|
|
let mut root = Path::new("../../README.md");
|
|
if !root.exists() {
|
|
root = Path::new("../README.md");
|
|
}
|
|
if !root.exists() {
|
|
root = Path::new("README.md");
|
|
}
|
|
std::fs::copy(
|
|
root,
|
|
Path::new(&format!("{}/README.md", std::env::var("OUT_DIR").unwrap())),
|
|
)
|
|
.unwrap();
|
|
}
|