mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
d100aaf4bf
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
20 lines
495 B
Rust
20 lines
495 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
if let Some(vers) = version::samba_version_string() {
|
|
println!("cargo:rustc-env=CARGO_PKG_VERSION={}", vers);
|
|
}
|
|
println!(
|
|
"cargo:rustc-env=CARGO_PKG_VERSION_MAJOR={}",
|
|
version::SAMBA_VERSION_MAJOR
|
|
);
|
|
println!(
|
|
"cargo:rustc-env=CARGO_PKG_VERSION_MINOR={}",
|
|
version::SAMBA_VERSION_MINOR
|
|
);
|
|
println!(
|
|
"cargo:rustc-env=CARGO_PKG_VERSION_PATCH={}",
|
|
version::SAMBA_VERSION_RELEASE
|
|
);
|
|
}
|