Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk mk/bsd.options.mk: make deprecated options more vis...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/14bc57349226
branches:  trunk
changeset: 430745:14bc57349226
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun May 03 18:45:28 2020 +0000

description:
mk/bsd.options.mk: make deprecated options more visible

Up to now, the generated warnings were not prefixed with anything.

diffstat:

 mk/bsd.options.mk |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 3f10c70c9641 -r 14bc57349226 mk/bsd.options.mk
--- a/mk/bsd.options.mk Sun May 03 18:29:53 2020 +0000
+++ b/mk/bsd.options.mk Sun May 03 18:45:28 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.options.mk,v 1.75 2020/05/03 10:10:05 rillig Exp $
+# $NetBSD: bsd.options.mk,v 1.76 2020/05/03 18:45:28 rillig Exp $
 #
 # This Makefile fragment provides boilerplate code for standard naming
 # conventions for handling per-package build options.
@@ -427,7 +427,7 @@
        @set args ${PKG_OPTIONS_DEPRECATED_WARNINGS}; shift; \
        [ $$# -eq 0 ] || ${ECHO}; \
        for l in "$$@"; do \
-               ${ECHO} "$$l"; \
+               ${ERROR_MSG} "$$l"; \
        done
 
 .if defined(PKG_SUPPORTED_OPTIONS)
@@ -454,13 +454,13 @@
 .    else
        @${ECHO} "      ${PKG_OPTIONS_VAR} = "${${PKG_OPTIONS_VAR}:Q}
 .    endif
+       @${ECHO} ""
+       @${ECHO} "=========================================================================="
        @set args ${PKG_OPTIONS_DEPRECATED_WARNINGS}; shift; \
        [ $$# -eq 0 ] || ${ECHO}; \
        for l in "$$@"; do \
-               ${ECHO} "$$l"; \
+               ${ERROR_MSG} "$$l"; \
        done
-       @${ECHO} ""
-       @${ECHO} "=========================================================================="
 .  endif
 .endif
 



Home | Main Index | Thread Index | Old Index