git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] doc: Don't echo sed command for manpage-base-url.xsl

From
Tim Schumacher <timschumi@gmx.de>
Date
Aug 28, 2018, 21:21 UTC
Message-ID
<20180828212104.2515-1-timschumi@gmx.de>

Previously, the sed command for generating manpage-base-url.xsl was printed to the console when being run.

For the purpose of silencing it, define a $(QUIET) variable which contains an '@' if verbose mode isn't enabled and which is empty otherwise. This just silences the command invocation without doing anything else.

Signed-off-by: Tim Schumacher <timschumi@gmx.de>
---
 Documentation/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Documentation/Makefile b/Documentation/Makefile
index a42dcfc74..45454e9b5 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -217,6 +217,7 @@ endif
 
 ifneq ($(findstring $(MAKEFLAGS),s),s)
 ifndef V
+	QUIET		= @
 	QUIET_ASCIIDOC	= @echo '   ' ASCIIDOC $@;
 	QUIET_XMLTO	= @echo '   ' XMLTO $@;
 	QUIET_DB2TEXI	= @echo '   ' DB2TEXI $@;
@@ -344,7 +345,7 @@ $(OBSOLETE_HTML): %.html : %.txto asciidoc.conf
 	mv $@+ $@
 
 manpage-base-url.xsl: manpage-base-url.xsl.in
-	sed "s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@
+	$(QUIET)sed "s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@
 
 %.1 %.5 %.7 : %.xml manpage-base-url.xsl
 	$(QUIET_XMLTO)$(RM) $@ && \
-- 
2.19.0.rc0
Next: Eric Sunshine
Message 1 of 9 in “doc: Don't echo sed command for manpage-base-url.xsl”
  1. doc: Don't echo sed command for manpage-base-url.xslTim Schumacher, Aug 28, 2018
  2. Eric SunshineAug 28, 2018
  3. Junio C HamanoAug 28, 2018
  4. doc: Don't echo sed command for manpage-base-url.xslTim Schumacher, Aug 29, 2018
  5. doc: Don't echo sed command for manpage-base-url.xslTim Schumacher, Aug 29, 2018
  6. Jonathan NiederAug 29, 2018
  7. Tim SchumacherAug 29, 2018
  8. Junio C HamanoAug 29, 2018
  9. Jonathan NiederAug 29, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.