Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/make nbmake bootstrap: be quieter if MAKEVERBOSE==0
details: https://anonhg.NetBSD.org/src/rev/1472dde413e5
branches: trunk
changeset: 934456:1472dde413e5
user: lukem <lukem%NetBSD.org@localhost>
date: Sat Jun 13 11:39:43 2020 +0000
description:
nbmake bootstrap: be quieter if MAKEVERBOSE==0
More accurately simulate <bsd.own.mk> and don't even print
the "compile" lines with MAKEVERBOSE=0
diffstat:
tools/make/buildmake.sh.in | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diffs (30 lines):
diff -r 40718713306e -r 1472dde413e5 tools/make/buildmake.sh.in
--- a/tools/make/buildmake.sh.in Sat Jun 13 11:32:52 2020 +0000
+++ b/tools/make/buildmake.sh.in Sat Jun 13 11:39:43 2020 +0000
@@ -1,5 +1,5 @@
#! /bin/sh
-# $NetBSD: buildmake.sh.in,v 1.14 2020/06/13 11:32:52 lukem Exp $
+# $NetBSD: buildmake.sh.in,v 1.15 2020/06/13 11:39:43 lukem Exp $
#
# buildmake.sh.in - Autoconf-processed shell script for building make(1).
#
@@ -17,11 +17,14 @@
_LDFLAGS="@LDFLAGS@ @LIBS@"
docmd () {
- if [ ${MAKEVERBOSE:-2} -lt 2 ]; then
- echo " $1 ${2##*/}"
- else
- echo "$3"
- fi
+ case "${MAKEVERBOSE:-2}" in
+ 0)
+ ;;
+ 1)
+ echo " $1 ${2##*/}" ;;
+ *)
+ echo "$3" ;;
+ esac
$3 || exit 1
}
Home |
Main Index |
Thread Index |
Old Index