diff options
author | 2025-01-13 16:54:34 +0100 | |
---|---|---|
committer | 2025-01-13 16:54:34 +0100 | |
commit | 6e3b3c8013e6d8814dbf70c854e55d062bedbdf4 (patch) | |
tree | 5b07a6d26c349293bc61a71a32d6e368fed11c4e /build.rs | |
download | bibata-cursor-cli-master.tar.gz bibata-cursor-cli-master.tar.bz2 bibata-cursor-cli-master.tar.lz bibata-cursor-cli-master.zip |
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..7403a3f --- /dev/null +++ b/build.rs @@ -0,0 +1,11 @@ +use std::{env::current_dir, fs, process::Command}; + +fn main() { + if !fs::exists(".cursors.min").unwrap() { + Command::new("/bin/bash") + .arg("./contrib/gen-meta.sh") + .current_dir(current_dir().unwrap().to_str().unwrap()) + .output() + .expect("Failed to execute command"); + } +} |