Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Simplify



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0707a726ffe9
branches:  trunk
changeset: 430424:0707a726ffe9
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Apr 30 23:52:30 2020 +0000

description:
Simplify

diffstat:

 mk/subst.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 70f173663331 -r 0707a726ffe9 mk/subst.mk
--- a/mk/subst.mk       Thu Apr 30 23:51:45 2020 +0000
+++ b/mk/subst.mk       Thu Apr 30 23:52:30 2020 +0000
@@ -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 @@
                        ${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;                       \
                                };                                      \



Home | Main Index | Thread Index | Old Index