Skip to content

Commit

Permalink
build: rename BUILT_VERSION to BUILD_VERSION
Browse files Browse the repository at this point in the history
Signed-off-by: Omer Faruk Bayram <[email protected]>
  • Loading branch information
seg6 authored and likebreath committed Apr 14, 2023
1 parent 3f17f46 commit 59012cc
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ fn main() {
}

// This println!() has a special behavior, as it will set the environment
// variable BUILT_VERSION, so that it can be reused from the binary.
// variable BUILD_VERSION, so that it can be reused from the binary.
// Particularly, this is used from src/main.rs to display the exact
// version.
println!("cargo:rustc-env=BUILT_VERSION={version}");
println!("cargo:rustc-env=BUILD_VERSION={version}");
}
2 changes: 1 addition & 1 deletion performance-metrics/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ fn main() {
let opts: Options = argh::from_env();

if opts.version {
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILT_VERSION"));
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION"));
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/bin/ch-remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ fn main() {
let toplevel: TopLevel = argh::from_env();

if matches!(toplevel.command, SubCommandEnum::Version(_)) {
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILT_VERSION"));
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION"));
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ fn main() {
let toplevel: TopLevel = argh::from_env();

if toplevel.version {
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILT_VERSION"));
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION"));
return;
}

Expand Down
2 changes: 1 addition & 1 deletion vhost_user_block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn main() {
let toplevel: TopLevel = argh::from_env();

if toplevel.version {
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILT_VERSION"));
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION"));
return;
}

Expand Down
2 changes: 1 addition & 1 deletion vhost_user_net/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn main() {
let toplevel: TopLevel = argh::from_env();

if toplevel.version {
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILT_VERSION"));
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION"));
return;
}

Expand Down

0 comments on commit 59012cc

Please sign in to comment.