pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Some shells barf if the for loop list is empty, so ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6ec55d5a1acd
branches:  trunk
changeset: 468487:6ec55d5a1acd
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Feb 14 13:58:34 2004 +0000

description:
Some shells barf if the for loop list is empty, so avoid that.

diffstat:

 mk/bsd.pkg.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r f2bb10fa5251 -r 6ec55d5a1acd mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Sat Feb 14 13:55:19 2004 +0000
+++ b/mk/bsd.pkg.mk     Sat Feb 14 13:58:34 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1400 2004/02/14 13:54:28 jlam Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1401 2004/02/14 13:58:34 jlam Exp $
 #
 # This file is in the public domain.
 #
@@ -2355,14 +2355,14 @@
 _CONFIGURE_PREREQ+=    do-config-star-override
 .PHONY: do-config-star-override
 do-config-star-override:
-.  if defined(CONFIG_GUESS_OVERRIDE)
+.  if defined(CONFIG_GUESS_OVERRIDE) && !empty(CONFIG_GUESS_OVERRIDE)
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
        for g in ${CONFIG_GUESS_OVERRIDE}; do                           \
                ${RM} -f $$g;                                           \
                ${LN} -s ${_PKGSRCDIR}/mk/gnu-config/config.guess $$g;  \
        done
 .  endif
-.  if defined(CONFIG_SUB_OVERRIDE)
+.  if defined(CONFIG_SUB_OVERRIDE) && !empty(CONFIG_SUB_OVERRIDE)
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
        for s in ${CONFIG_SUB_OVERRIDE}; do                             \
                ${RM} -f $$s;                                           \



Home | Main Index | Thread Index | Old Index