parent
a2cf2c66e0
commit
c40866785f
2 changed files with 0 additions and 9 deletions
|
@ -74,9 +74,6 @@ ifneq ($(wildcard $(subst $(SPACE),\$(SPACE),$(CFG_GIT_DIR))),)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFG_BUILD_DATE = $(shell date +%F)
|
|
||||||
CFG_VERSION += (built $(CFG_BUILD_DATE))
|
|
||||||
|
|
||||||
# Windows exe's need numeric versions - don't use anything but
|
# Windows exe's need numeric versions - don't use anything but
|
||||||
# numbers and dots here
|
# numbers and dots here
|
||||||
CFG_VERSION_WIN = $(CFG_RELEASE_NUM)
|
CFG_VERSION_WIN = $(CFG_RELEASE_NUM)
|
||||||
|
@ -334,7 +331,6 @@ endif
|
||||||
ifdef CFG_VER_HASH
|
ifdef CFG_VER_HASH
|
||||||
export CFG_VER_HASH
|
export CFG_VER_HASH
|
||||||
endif
|
endif
|
||||||
export CFG_BUILD_DATE
|
|
||||||
export CFG_VERSION
|
export CFG_VERSION
|
||||||
export CFG_VERSION_WIN
|
export CFG_VERSION_WIN
|
||||||
export CFG_RELEASE
|
export CFG_RELEASE
|
||||||
|
|
|
@ -483,10 +483,6 @@ pub fn commit_date_str() -> Option<&'static str> {
|
||||||
option_env!("CFG_VER_DATE")
|
option_env!("CFG_VER_DATE")
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn build_date_str() -> Option<&'static str> {
|
|
||||||
option_env!("CFG_BUILD_DATE")
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Prints version information and returns None on success or an error
|
/// Prints version information and returns None on success or an error
|
||||||
/// message on panic.
|
/// message on panic.
|
||||||
pub fn version(binary: &str, matches: &getopts::Matches) {
|
pub fn version(binary: &str, matches: &getopts::Matches) {
|
||||||
|
@ -498,7 +494,6 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
|
||||||
println!("binary: {}", binary);
|
println!("binary: {}", binary);
|
||||||
println!("commit-hash: {}", unw(commit_hash_str()));
|
println!("commit-hash: {}", unw(commit_hash_str()));
|
||||||
println!("commit-date: {}", unw(commit_date_str()));
|
println!("commit-date: {}", unw(commit_date_str()));
|
||||||
println!("build-date: {}", unw(build_date_str()));
|
|
||||||
println!("host: {}", config::host_triple());
|
println!("host: {}", config::host_triple());
|
||||||
println!("release: {}", unw(release_str()));
|
println!("release: {}", unw(release_str()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue