Implement -dl (aka LOUD) to override '@' at the start of script lines.
Based on supplied patch. PR: 37202
This commit is contained in:
parent
b0f72f0138
commit
807aff24d0
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: compat.c,v 1.68 2007/10/05 15:27:45 sjg Exp $ */
|
||||
/* $NetBSD: compat.c,v 1.69 2008/01/19 06:52:13 sjg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
|
||||
@ -70,14 +70,14 @@
|
||||
*/
|
||||
|
||||
#ifndef MAKE_NATIVE
|
||||
static char rcsid[] = "$NetBSD: compat.c,v 1.68 2007/10/05 15:27:45 sjg Exp $";
|
||||
static char rcsid[] = "$NetBSD: compat.c,v 1.69 2008/01/19 06:52:13 sjg Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: compat.c,v 1.68 2007/10/05 15:27:45 sjg Exp $");
|
||||
__RCSID("$NetBSD: compat.c,v 1.69 2008/01/19 06:52:13 sjg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
@ -259,7 +259,7 @@ CompatRunCommand(ClientData cmdp, ClientData gnp)
|
||||
while ((*cmd == '@') || (*cmd == '-') || (*cmd == '+')) {
|
||||
switch (*cmd) {
|
||||
case '@':
|
||||
silent = TRUE;
|
||||
silent = DEBUG(LOUD) ? FALSE : TRUE;
|
||||
break;
|
||||
case '-':
|
||||
errCheck = FALSE;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: job.c,v 1.134 2007/12/21 20:32:24 dsl Exp $ */
|
||||
/* $NetBSD: job.c,v 1.135 2008/01/19 06:52:14 sjg 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.134 2007/12/21 20:32:24 dsl Exp $";
|
||||
static char rcsid[] = "$NetBSD: job.c,v 1.135 2008/01/19 06:52:14 sjg 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.134 2007/12/21 20:32:24 dsl Exp $");
|
||||
__RCSID("$NetBSD: job.c,v 1.135 2008/01/19 06:52:14 sjg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
@ -710,7 +710,7 @@ JobPrintCommand(ClientData cmdp, ClientData jobp)
|
||||
while (*cmd == '@' || *cmd == '-' || (*cmd == '+')) {
|
||||
switch (*cmd) {
|
||||
case '@':
|
||||
shutUp = TRUE;
|
||||
shutUp = DEBUG(LOUD) ? FALSE : TRUE;
|
||||
break;
|
||||
case '-':
|
||||
errOff = TRUE;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.145 2007/12/21 20:32:24 dsl Exp $ */
|
||||
/* $NetBSD: main.c,v 1.146 2008/01/19 06:52:14 sjg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
@ -69,7 +69,7 @@
|
||||
*/
|
||||
|
||||
#ifndef MAKE_NATIVE
|
||||
static char rcsid[] = "$NetBSD: main.c,v 1.145 2007/12/21 20:32:24 dsl Exp $";
|
||||
static char rcsid[] = "$NetBSD: main.c,v 1.146 2008/01/19 06:52:14 sjg Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.145 2007/12/21 20:32:24 dsl Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.146 2008/01/19 06:52:14 sjg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
@ -233,6 +233,9 @@ parse_debug_options(const char *argvalue)
|
||||
case 'j':
|
||||
debug |= DEBUG_JOB;
|
||||
break;
|
||||
case 'l':
|
||||
debug |= DEBUG_LOUD;
|
||||
break;
|
||||
case 'm':
|
||||
debug |= DEBUG_MAKE;
|
||||
break;
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: make.1,v 1.134 2007/10/08 20:26:36 sjg Exp $
|
||||
.\" $NetBSD: make.1,v 1.135 2008/01/19 06:52:14 sjg Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1990, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -151,6 +151,11 @@ on error.
|
||||
Print the input graph before exiting on error.
|
||||
.It Ar j
|
||||
Print debugging information about running multiple shells.
|
||||
.It Ar l
|
||||
Print commands in Makefiles regardless of whether or not they are prefixed by
|
||||
.Ql @
|
||||
or other "quiet" flags.
|
||||
Also known as "loud" behavior.
|
||||
.It Ar m
|
||||
Print debugging information about making targets, including modification
|
||||
dates.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: make.h,v 1.71 2007/12/21 20:32:24 dsl Exp $ */
|
||||
/* $NetBSD: make.h,v 1.72 2008/01/19 06:52:15 sjg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
@ -423,6 +423,7 @@ extern int debug;
|
||||
#define DEBUG_FOR 0x0400
|
||||
#define DEBUG_SHELL 0x0800
|
||||
#define DEBUG_ERROR 0x1000
|
||||
#define DEBUG_LOUD 0x2000
|
||||
#define DEBUG_GRAPH3 0x10000
|
||||
#define DEBUG_SCRIPT 0x20000
|
||||
#define DEBUG_PARSE 0x40000
|
||||
|
Loading…
Reference in New Issue
Block a user