Revert "Embed git revision in CLI version output."

This reverts commit 459170ff09.
This commit is contained in:
parazyd
2023-08-03 11:52:16 +02:00
parent 51c251cc23
commit bea7596209
2 changed files with 3 additions and 10 deletions

View File

@@ -11,9 +11,6 @@ CARGO = cargo +nightly
# Uncomment this if the above is uncommented
#TARGET_PRFX = --target=
# Git revision, embedded in src/lib.rs
GIT_REV = $(shell git rev-parse --short HEAD)
# Binaries to be built
BINS = darkfid faucetd drk darkirc vanityaddr tau taud
@@ -38,10 +35,7 @@ BINDEPS = \
all: $(BINS)
rev:
@grep -q "$(GIT_REV)" src/lib.rs || sed -e 's/@GIT_REV@/$(GIT_REV)/' -i src/lib.rs
zkas: rev $(ZKASDEPS)
zkas: $(ZKASDEPS)
$(CARGO) build $(TARGET_PRFX)$(RUST_TARGET) --all-features --release --package $@
cp -f target/$(RUST_TARGET)/release/$@ $@
@@ -107,5 +101,5 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$$i; \
done;
.PHONY: all rev check fix fmt clippy test test-no-run cleanbin clean \
.PHONY: all check fix fmt clippy test test-no-run cleanbin clean \
install uninstall contracts coverage

View File

@@ -69,10 +69,9 @@ pub const ANSI_LOGO: &str = include_str!("../contrib/darkfi.ansi");
macro_rules! cli_desc {
() => {{
let desc = format!(
"{} {}-{}\n{}\n{}",
"{} {}\n{}\n{}",
env!("CARGO_PKG_NAME").to_string(),
env!("CARGO_PKG_VERSION").to_string(),
"@GIT_REV@", // Only noobs will change this
env!("CARGO_PKG_DESCRIPTION").to_string(),
darkfi::ANSI_LOGO,
);