2018-12-20 21:07:27 +03:00
|
|
|
use std::env;
|
|
|
|
use std::path::Path;
|
2018-12-13 03:58:46 +03:00
|
|
|
use std::process::Command;
|
|
|
|
|
2019-01-24 03:08:36 +03:00
|
|
|
// TODO See https://github.com/dtolnay/inventory for an alternate approach.
|
2018-12-13 03:58:46 +03:00
|
|
|
fn main() {
|
2018-12-20 21:07:27 +03:00
|
|
|
let output = Path::new(&env::var("OUT_DIR").unwrap()).join("init_colors.rs");
|
|
|
|
|
2018-12-13 03:58:46 +03:00
|
|
|
assert!(Command::new("/usr/bin/python2")
|
2018-12-20 21:07:27 +03:00
|
|
|
.args(&["extract_colorscheme.py", output.to_str().unwrap()])
|
2018-12-13 03:58:46 +03:00
|
|
|
.status()
|
|
|
|
.unwrap()
|
|
|
|
.success());
|
|
|
|
}
|