Skip to content

Commit

Permalink
rerun-if-changed doesn't support wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
iovxw committed Jun 3, 2020
1 parent 60d3006 commit cb1cb2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ use std::path::Path;

use ctl10n;

const LOCALES: &[&str] = &["zh", "en"];

fn main() {
println!("cargo:rerun-if-changed=locales/*.toml");
for locale in LOCALES {
println!("cargo:rerun-if-changed=locales/{}.toml", locale);
}
if let Err(err) = ctl10n::convert_strings_file(
format!(
"locales/{}.toml",
Expand Down

0 comments on commit cb1cb2a

Please sign in to comment.