mirror of
https://github.com/aphrody-labs/uutils-coreutils.git
synced 2026-10-13 21:07:43 +00:00
build: add rerun-if-changed for tldr.zip to improve build warnings
This commit is contained in:
1 parent
563e5c3d3f
commit
ca71248c82
1 file changed
+1
@@ -21,6 +21,7 @@ pub fn main() {
|
||||
|
||||
// Check for tldr.zip when building uudoc to warn users once at build time
|
||||
// instead of repeatedly at runtime for each utility
|
||||
println!("cargo:rerun-if-changed=docs/tldr.zip");
|
||||
if env::var("CARGO_FEATURE_UUDOC").is_ok() && !Path::new("docs/tldr.zip").exists() {
|
||||
println!(
|
||||
"cargo:warning=No tldr archive found, so the documentation will not include examples."
|
||||
|
||||
Reference in new issue
Block a user