From 414f0702e82dae95b863e2398e4a9d5198d374f3 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 30 Apr 2020 23:52:30 +0000 Subject: Simplify --- 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 7a8c0f3ea85..403c9416c9e 100644 --- a/mk/subst.mk +++ b/mk/subst.mk @@ -1,4 +1,4 @@ -# $NetBSD: subst.mk,v 1.88 2020/04/30 23:51:45 joerg Exp $ +# $NetBSD: subst.mk,v 1.89 2020/04/30 23:52:30 joerg Exp $ # # The subst framework replaces text in one or more files in the WRKSRC # directory. Packages can define several ``classes'' of replacements. @@ -201,7 +201,7 @@ ${_SUBST_COOKIE.${class}}: ${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") \ - && [ "x$$found" != "x" ] && { \ + && [ -n "$$found" ] && { \ changed=yes; \ continue; \ }; \ -- cgit v1.2.3