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

[PATCHv2] install-webdoc: quell diff output on stdout

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Sep 6, 2010, 06:18 UTC
Message-ID
<52f347f82734e5d75d0b93a67edca9941efaa5a9.1283612149.git.git@drmicha.warpmail.net>
In-Reply-To
<7vhbi842gx.fsf@alter.siamese.dyndns.org>

When installing html-doc, install-webdoc.sh compares the installed html with the version to be installed using diff. Currently, the diff output fills up stdout.

install-webdoc.sh actually uses $DIFF, and is the only user. Redefine DIFF from "diff" to "diff -q" to quell the output which is a more useful general default and in line with the default "QUIET" make rules.

This can be easily overriden by prefixing make with "DIFF=diff" or putting this in config.mak.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 38a8b65..b5d9c51 100644
--- a/Makefile
+++ b/Makefile
@@ -301,7 +301,7 @@ export prefix bindir sharedir sysconfdir gitwebdir
 CC = gcc
 AR = ar
 RM = rm -f
-DIFF = diff
+DIFF ?= diff -q
 TAR = tar
 FIND = find
 INSTALL = install
-- 
1.7.2.2.540.g9d56f.dirty
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 7 in “install-webdoc: quell diff output on stdout”
  1. install-webdoc: quell diff output on stdoutMichael J Gruber, Sep 1, 2010
  2. Junio C HamanoSep 1, 2010
  3. Michael J GruberSep 2, 2010
  4. Junio C HamanoSep 2, 2010
  5. [PATCHv2] install-webdoc: quell diff output on stdoutMichael J Gruber, Sep 6, 2010
  6. Junio C HamanoSep 6, 2010
  7. Michael J GruberSep 6, 2010

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.