summaryrefslogtreecommitdiffstats
path: root/scripts/maptool
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-06-22 02:15:52 +0200
committerJokler <jokler@protonmail.com>2020-06-22 02:21:55 +0200
commit37ccc5b7f8eaac129cfa5a229ff2c4e16d6fc929 (patch)
treeff1446fe9b369112bdd41aaa02bc99343a9ecdf8 /scripts/maptool
parent1a357dd0a71d8e6d73cc8af4c93d3005576aff36 (diff)
downloaddotfiles-37ccc5b7f8eaac129cfa5a229ff2c4e16d6fc929.tar.gz
dotfiles-37ccc5b7f8eaac129cfa5a229ff2c4e16d6fc929.zip
Add new scripts and update old ones
Diffstat (limited to 'scripts/maptool')
-rwxr-xr-xscripts/maptool31
1 files changed, 31 insertions, 0 deletions
diff --git a/scripts/maptool b/scripts/maptool
new file mode 100755
index 0000000..a6b8876
--- /dev/null
+++ b/scripts/maptool
@@ -0,0 +1,31 @@
+#!/usr/bin/env scriptisto
+
+// scriptisto-begin
+// script_src: src/main.rs
+// build_cmd: cargo build --release && strip ./target/release/script
+// target_bin: ./target/release/script
+// files:
+// - path: Cargo.toml
+// content: |
+// package = { name = "script", version = "0.1.0", edition = "2018"}
+// [dependencies]
+// scripttools = { path = "/home/jokler/rust/scripttools" }
+// cmd_lib = "*"
+// scriptisto-end
+
+use cmd_lib::*;
+use scripttools::*;
+
+fn main() {
+ if let Err(e) = run() {
+ eprintln!("{}", e);
+ }
+}
+
+fn run() -> Result<()> {
+ run_cmd!("/opt/MapTool/MapTool")?;
+
+ Ok(())
+}
+
+// vim: filetype=rust