summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-04-11 04:30:31 +0200
committerAlejandro Colomar <alx@kernel.org>2023-04-11 04:30:33 +0200
commit0a94799e2b19bd3a33d8f4d6a3b7850dee7e41c4 (patch)
tree9148bf5563cf74ee12444d1abfc480af6c528452
parent6e1e6559453187f36e060d02589f4b21a459139d (diff)
dist.mk: dist: Don't pollute stderr unnecessarily
When running 'make dist' from a tarball (so we don't have git), we'll see tons of errors saying we're not in a git tree. However, that's not meaningful, because that command is a no-op in such a scenario: the (date) placeholder is not there anymore to be replaced. Let's hide the errors, unless V=1. Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--lib/dist.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dist.mk b/lib/dist.mk
index 15eacbfdc..ccbaeb881 100644
--- a/lib/dist.mk
+++ b/lib/dist.mk
@@ -32,7 +32,7 @@ $(_DISTPAGES): $(_DISTDIR)/man%: $(srcdir)/man% | $$(@D)/
$(info INSTALL $@)
$(INSTALL_DATA) -T $< $@
$(SED) -i '/^.TH/s/(unreleased)/$(DISTVERSION)/' $@
- $(SED) -i "/^.TH/s/(date)/$$(git log --format=%cs -1 -- $<)/" $@
+ $(SED) -i "/^.TH/s/(date)/$$(git log --format=%cs -1 -- $< $(HIDE_ERR))/" $@
$(_DISTOTHERS): $(_DISTDIR)/%: $(srcdir)/% | $$(@D)/
$(info CP $@)