Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libkern libkern: fix wrong escaping in makefile



details:   https://anonhg.NetBSD.org/src/rev/a584feff4d68
branches:  trunk
changeset: 367255:a584feff4d68
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jun 19 18:28:16 2022 +0000

description:
libkern: fix wrong escaping in makefile

In the unlikely event that KERNDIR contains a '$' character, that '$'
should not be doubled to '$$'. It only needs the usual shell quoting.

diffstat:

 sys/lib/libkern/Makefile.inc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c1ff013de067 -r a584feff4d68 sys/lib/libkern/Makefile.inc
--- a/sys/lib/libkern/Makefile.inc      Sun Jun 19 12:14:33 2022 +0000
+++ b/sys/lib/libkern/Makefile.inc      Sun Jun 19 18:28:16 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.47 2022/05/30 14:13:59 rin Exp $
+#      $NetBSD: Makefile.inc,v 1.48 2022/06/19 18:28:16 rillig Exp $
 #
 #      Configuration variables (default values are below):
 #
@@ -41,7 +41,7 @@
 LIBKERN_MD_FLAGS?=     none
 
 KERNMAKE= \
-       cd ${KERNDST} && ${MAKE} -f ${KERNDIR:q}/Makefile \
+       cd ${KERNDST} && ${MAKE} -f ${KERNDIR:Q}/Makefile \
            KERNDIR=${KERNDIR:q} \
            CC=${CC:q} CFLAGS=${CFLAGS:q} CPUFLAGS= \
            AS=${AS:q} AFLAGS=${AFLAGS:q} \



Home | Main Index | Thread Index | Old Index