summaryrefslogtreecommitdiffstats
path: root/scripts/maptool
blob: a6b88761fa07c7093aa6eff9ccc3c2febb3488b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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