diff --git a/dsc-bicep-ext/build.rs b/dsc-bicep-ext/build.rs index 7d66e7fec..505fbe77f 100644 --- a/dsc-bicep-ext/build.rs +++ b/dsc-bicep-ext/build.rs @@ -7,6 +7,8 @@ fn main() -> Result<(), Box> { // Prevent this build script from rerunning unless the proto file or build script changes. println!("cargo:rerun-if-changed=build.rs"); println!("cargo:rerun-if-changed=proto/bicep.proto"); + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); let descriptor_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("bicep.bin"); diff --git a/dsc/build.rs b/dsc/build.rs new file mode 100644 index 000000000..78749624c --- /dev/null +++ b/dsc/build.rs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +fn main() { + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); +} diff --git a/lib/dsc-lib-jsonschema/build.rs b/lib/dsc-lib-jsonschema/build.rs index 812a42907..a9035378e 100644 --- a/lib/dsc-lib-jsonschema/build.rs +++ b/lib/dsc-lib-jsonschema/build.rs @@ -530,4 +530,6 @@ fn main() { println!("cargo::rerun-if-changed=build.rs"); println!("cargo::rerun-if-changed=.versions.json"); println!("cargo::rerun-if-changed=.versions.ps1"); + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); } diff --git a/lib/dsc-lib-registry/build.rs b/lib/dsc-lib-registry/build.rs new file mode 100644 index 000000000..78749624c --- /dev/null +++ b/lib/dsc-lib-registry/build.rs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +fn main() { + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); +} diff --git a/lib/dsc-lib/build.rs b/lib/dsc-lib/build.rs new file mode 100644 index 000000000..78749624c --- /dev/null +++ b/lib/dsc-lib/build.rs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +fn main() { + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); +} diff --git a/resources/WindowsUpdate/build.rs b/resources/WindowsUpdate/build.rs new file mode 100644 index 000000000..78749624c --- /dev/null +++ b/resources/WindowsUpdate/build.rs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +fn main() { + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); +} diff --git a/resources/dism_dsc/build.rs b/resources/dism_dsc/build.rs new file mode 100644 index 000000000..78749624c --- /dev/null +++ b/resources/dism_dsc/build.rs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +fn main() { + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); +} diff --git a/resources/dscecho/build.rs b/resources/dscecho/build.rs new file mode 100644 index 000000000..78749624c --- /dev/null +++ b/resources/dscecho/build.rs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +fn main() { + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); +} diff --git a/resources/registry/build.rs b/resources/registry/build.rs index 977722481..ceb67a462 100644 --- a/resources/registry/build.rs +++ b/resources/registry/build.rs @@ -4,4 +4,5 @@ fn main() { // Prevent this build script from rerunning unnecessarily. println!("cargo:rerun-if-changed=build.rs"); + println!("cargo:rerun-if-changed=locales"); } diff --git a/resources/runcommandonset/build.rs b/resources/runcommandonset/build.rs new file mode 100644 index 000000000..78749624c --- /dev/null +++ b/resources/runcommandonset/build.rs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +fn main() { + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); +} diff --git a/resources/sshdconfig/build.rs b/resources/sshdconfig/build.rs new file mode 100644 index 000000000..78749624c --- /dev/null +++ b/resources/sshdconfig/build.rs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +fn main() { + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); +} diff --git a/resources/windows_firewall/build.rs b/resources/windows_firewall/build.rs new file mode 100644 index 000000000..78749624c --- /dev/null +++ b/resources/windows_firewall/build.rs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +fn main() { + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); +} diff --git a/resources/windows_service/build.rs b/resources/windows_service/build.rs new file mode 100644 index 000000000..78749624c --- /dev/null +++ b/resources/windows_service/build.rs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +fn main() { + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); +} diff --git a/xtask/build.rs b/xtask/build.rs new file mode 100644 index 000000000..78749624c --- /dev/null +++ b/xtask/build.rs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +fn main() { + // Always rebuild if translations are updated. + println!("cargo:rerun-if-changed=locales"); +}