From 39038285e12a7129955d1715f091d080fa724aa8 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 30 Apr 2020 23:51:45 +0000 Subject: Use $() as it gives more consistent quoting behavior as seen by devel/ruby-redmine. --- mk/subst.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mk/subst.mk') diff --git a/mk/subst.mk b/mk/subst.mk index 6d7eb97f91e..7a8c0f3ea85 100644 --- a/mk/subst.mk +++ b/mk/subst.mk @@ -1,4 +1,4 @@ -# $NetBSD: subst.mk,v 1.87 2020/04/30 23:51:15 joerg Exp $ +# $NetBSD: subst.mk,v 1.88 2020/04/30 23:51:45 joerg Exp $ # # The subst framework replaces text in one or more files in the WRKSRC # directory. Packages can define several ``classes'' of replacements. @@ -200,7 +200,7 @@ ${_SUBST_COOKIE.${class}}: ${SUBST_FILTER_CMD.${class}} < "$$file" > "$$tmpfile"; \ ${CMP} -s "$$tmpfile" "$$file" && { \ ${AWK} -f ${PKGSRCDIR}/mk/scripts/subst-identity.awk -- ${SUBST_SED.${class}} \ - && found=`LC_ALL=C ${SED} -n ${SUBST_SED.${class}:C,^['"]?s.*,&p,} "$$file"` \ + && found=$(LC_ALL=C ${SED} -n ${SUBST_SED.${class}:C,^['"]?s.*,&p,} "$$file") \ && [ "x$$found" != "x" ] && { \ changed=yes; \ continue; \ -- cgit v1.2.3