1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-09-28 11:19:51 +02:00

Add rerun-if-changed lines in build.rs

This commit is contained in:
Elisabeth Henry 2016-10-08 14:52:35 +02:00
parent 934591b019
commit 8f082c0648

View File

@ -2,6 +2,8 @@ extern crate crowbook_localize;
use crowbook_localize::Localizer;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=lang/fr.mo");
let mut localizer = Localizer::new();
localizer.add_lang("fr", include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/lang/fr.mo"))).unwrap();
localizer.write_macro_file(concat!(env!("CARGO_MANIFEST_DIR"), "/src/lib/localize_macros.rs")).unwrap();