summaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpmemewarenet>2025-01-13 16:54:34 +0100
committerLibravatarLarge Libravatar memdmp <memdmpmemewarenet>2025-01-13 16:54:34 +0100
commit6e3b3c8013e6d8814dbf70c854e55d062bedbdf4 (patch)
tree5b07a6d26c349293bc61a71a32d6e368fed11c4e /build.rs
downloadbibata-cursor-cli-master.tar.gz
bibata-cursor-cli-master.tar.bz2
bibata-cursor-cli-master.tar.lz
bibata-cursor-cli-master.zip

chore: initial commit

HEADmaster
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs11
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");
+ }
+}