pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Added two missing :Q operators. One of them affects...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e2d16e9650d3
branches:  trunk
changeset: 505796:e2d16e9650d3
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jan 07 23:27:41 2006 +0000

description:
Added two missing :Q operators. One of them affects how the
SUBST_MESSAGE is printed. The ones that have been defined with "quotes"
in their Makefiles are printed with quotes (of course). This is the
consequence of the design pattern "quote-exactly-where-necessary", which
in fact should be have been applied to pkgsrc as a whole, but still isn't.

diffstat:

 mk/subst.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r b1decdc5a1c0 -r e2d16e9650d3 mk/subst.mk
--- a/mk/subst.mk       Sat Jan 07 22:27:56 2006 +0000
+++ b/mk/subst.mk       Sat Jan 07 23:27:41 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.30 2006/01/07 18:43:05 rillig Exp $
+# $NetBSD: subst.mk,v 1.31 2006/01/07 23:27:41 rillig Exp $
 #
 # This Makefile fragment implements a general text replacement facility.
 # Package makefiles define a ``class'', for each of which a particular
@@ -60,13 +60,13 @@
 subst-${_class_}-message:
 .  if defined(SUBST_MESSAGE.${_class_})
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
-       ${ECHO_SUBST_MSG} "=> "${SUBST_MESSAGE.${_class_}}
+       ${ECHO_SUBST_MSG} "=> "${SUBST_MESSAGE.${_class_}:Q}
 .  endif
 
 .PHONY: subst-${_class_}-cookie
 subst-${_class_}-cookie:
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
-       ${TOUCH} ${TOUCH_FLAGS} ${_SUBST_COOKIE.${_class_}}
+       ${TOUCH} ${TOUCH_FLAGS} ${_SUBST_COOKIE.${_class_}:Q}
 
 ${_SUBST_COOKIE.${_class_}}:
        ${_PKG_SILENT}${_PKG_DEBUG} set -e;                             \



Home | Main Index | Thread Index | Old Index