Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make If -s (silent) is specified, don't output the t...



details:   https://anonhg.NetBSD.org/src/rev/d6bb70f541c4
branches:  trunk
changeset: 586886:d6bb70f541c4
user:      dsl <dsl%NetBSD.org@localhost>
date:      Wed Jan 04 20:56:05 2006 +0000

description:
If -s (silent) is specified, don't output the target name before target
output in parallel makes.
After all with -s you wouldn't know the command for a non-parallel make.
Makes (sic) the output of parallel NetBSD build fathomable.

diffstat:

 usr.bin/make/job.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 2f3d8d41b2e5 -r d6bb70f541c4 usr.bin/make/job.c
--- a/usr.bin/make/job.c        Wed Jan 04 20:47:24 2006 +0000
+++ b/usr.bin/make/job.c        Wed Jan 04 20:56:05 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: job.c,v 1.98 2005/08/08 16:42:54 christos Exp $        */
+/*     $NetBSD: job.c,v 1.99 2006/01/04 20:56:05 dsl Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: job.c,v 1.98 2005/08/08 16:42:54 christos Exp $";
+static char rcsid[] = "$NetBSD: job.c,v 1.99 2006/01/04 20:56:05 dsl Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)job.c      8.2 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: job.c,v 1.98 2005/08/08 16:42:54 christos Exp $");
+__RCSID("$NetBSD: job.c,v 1.99 2006/01/04 20:56:05 dsl Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -2217,7 +2217,7 @@
        while (ecp != NULL) {
            if (cp != ecp) {
                *ecp = '\0';
-               if (msg && job->node != lastNode) {
+               if (!beSilent && msg && job->node != lastNode) {
                    MESSAGE(stdout, job->node);
                    lastNode = job->node;
                }
@@ -2381,7 +2381,7 @@
                 * our own free will.
                 */
                if (*cp != '\0') {
-                   if (job->node != lastNode) {
+                   if (!beSilent && job->node != lastNode) {
                        MESSAGE(stdout, job->node);
                        lastNode = job->node;
                    }



Home | Main Index | Thread Index | Old Index