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/89e7a8a1ff9e
branches:  trunk
changeset: 1010926:89e7a8a1ff9e
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 0fb963b72a78 -r 89e7a8a1ff9e 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