pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/check mk/check/check-wrkref.mk: fix shell quoting



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb7962c5c7ce
branches:  trunk
changeset: 428283:cb7962c5c7ce
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Apr 26 14:23:25 2020 +0000

description:
mk/check/check-wrkref.mk: fix shell quoting

Before, adding "Binary file matches" (including the quotes) to
CHECK_WRKREF_EXTRA_DIRS led to a syntax error. Adding this string is so
obvious that it should have been added a long time ago already.

diffstat:

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

diffs (27 lines):

diff -r 45ba6eb508ab -r cb7962c5c7ce mk/check/check-wrkref.mk
--- a/mk/check/check-wrkref.mk  Sun Apr 26 14:14:31 2020 +0000
+++ b/mk/check/check-wrkref.mk  Sun Apr 26 14:23:25 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-wrkref.mk,v 1.24 2015/04/29 13:39:43 jperkin Exp $
+# $NetBSD: check-wrkref.mk,v 1.25 2020/04/26 14:23:25 rillig Exp $
 #
 # This file checks that the installed files don't contain any strings
 # that point to the directory where the package had been built, to make
@@ -38,7 +38,7 @@
 #
 
 _VARGROUPS+=                   check-wrkref
-_USER_VARS.check-wrkref=       CHECK_WRKREF
+_USER_VARS.check-wrkref=       CHECK_WRKREF CHECK_WRKREF_EXTRA_DIRS
 _PKG_VARS.check-wrkref=                CHECK_WRKREF_SKIP
 
 .if ${PKG_DEVELOPER:Uno} != "no"
@@ -93,7 +93,7 @@
                *) ;;                                                   \
                esac;                                                   \
                ${SHCOMMENT} "[$$file]";                                \
-               ${EGREP} "${_CHECK_WRKREF_DIRS:ts|}" "${DESTDIR}$$file" \
+               ${EGREP} ${_CHECK_WRKREF_DIRS:ts|:Q} "${DESTDIR}$$file" \
                    2>/dev/null | ${SED} -e "s|^|$$file:        |";     \
        done
        ${RUN}                                                          \



Home | Main Index | Thread Index | Old Index