pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/scripts Be less verbose.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4f94c8f3ae24
branches:  trunk
changeset: 349413:4f94c8f3ae24
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Jul 07 11:29:34 2016 +0000

description:
Be less verbose.

diffstat:

 mk/scripts/mkreadme |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r a5efe3ae629d -r 4f94c8f3ae24 mk/scripts/mkreadme
--- a/mk/scripts/mkreadme       Thu Jul 07 11:10:05 2016 +0000
+++ b/mk/scripts/mkreadme       Thu Jul 07 11:29:34 2016 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: mkreadme,v 1.28 2015/10/03 13:17:57 bsiegert Exp $
+# $NetBSD: mkreadme,v 1.29 2016/07/07 11:29:34 wiz Exp $
 #
 # Script for README.html generation
 #
@@ -270,10 +270,12 @@
 if [ -d ${PKGSRCDIR}/pkgtools/prereq-readme ]; then
     cd ${PKGSRCDIR}/pkgtools/prereq-readme
     eval "`${BMAKE} show-tools`"
-    for v in AWK CMP ECHO EXPR FGREP FIND GREP GZIP_CMD SED SETENV SORT
-    do
-       eval "echo '---->'  ${v}=\"\${${v}}\""
-    done
+    if [ "x$quiet" != "xno" ]; then
+       for v in AWK CMP ECHO EXPR FGREP FIND GREP GZIP_CMD SED SETENV SORT
+       do
+           eval "echo '---->'  ${v}=\"\${${v}}\""
+       done
+    fi
 else
     echo "Error:   ${PKGSRCDIR}/pkgtools/prereq-readme does not seem to exist"
     exit 1
@@ -294,7 +296,9 @@
            echo "Failed.  This is a fatal error"
            clean_and_exit
        fi
-       echo "---->  ${v}=\"${val}\""
+       if [ "x$quiet" != "xno" ]; then
+           echo "---->  ${v}=\"${val}\""
+       fi
        eval "${v}=\"${val}\""
     done
 else



Home | Main Index | Thread Index | Old Index