Skip to content

Commit

Permalink
chore: Add conditions on sub-crates version updating
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP committed Sep 23, 2024
1 parent 364fcc6 commit d262423
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,15 @@ fn main() {
eprintln!("cargo:warning={}", err);
}
}
if let Err(err) = set_cargo_version(package_version, "xtask/Cargo.toml") {
eprintln!("cargo:warning={}", err);
if Path::new("xtask").is_dir() {
if let Err(err) = set_cargo_version(package_version, "xtask/Cargo.toml") {
eprintln!("cargo:warning={}", err);
}
}
if let Err(err) = set_cargo_version(package_version, "rar-common/Cargo.toml") {
eprintln!("cargo:warning={}", err);
if Path::new("rar-common").is_dir() {
if let Err(err) = set_cargo_version(package_version, "rar-common/Cargo.toml") {
eprintln!("cargo:warning={}", err);
}
}
if let Err(err) = set_readme_version(package_version, "README.md") {
eprintln!("cargo:warning={}", err);
Expand Down

0 comments on commit d262423

Please sign in to comment.