diff options
author | joerg <joerg@pkgsrc.org> | 2020-04-30 23:52:30 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2020-04-30 23:52:30 +0000 |
commit | 414f0702e82dae95b863e2398e4a9d5198d374f3 (patch) | |
tree | a39fbe7074f774476f2c3837d1d028c1be459c13 /mk/subst.mk | |
parent | 39038285e12a7129955d1715f091d080fa724aa8 (diff) | |
download | pkgsrc-414f0702e82dae95b863e2398e4a9d5198d374f3.tar.gz |
Simplify
Diffstat (limited to 'mk/subst.mk')
-rw-r--r-- | mk/subst.mk | 4 |
1 files changed, 2 insertions, 2 deletions
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; \ }; \ |