2021-03-26 00:40:41 +01:00
|
|
|
// Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
|
2021-03-26 00:54:42 +01:00
|
|
|
use std::{env, fs, path::Path};
|
2021-03-26 00:40:41 +01:00
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
let args: Vec<_> = env::args().collect();
|
|
|
|
let target_file = Path::new(args.get(1).expect("output path not provided"));
|
2021-03-26 00:54:42 +01:00
|
|
|
let strings_json = include_str!(concat!(env!("OUT_DIR"), "/strings.json"));
|
2021-03-26 00:40:41 +01:00
|
|
|
|
2021-03-26 00:54:42 +01:00
|
|
|
fs::write(target_file, strings_json).unwrap();
|
2021-03-26 00:40:41 +01:00
|
|
|
}
|