pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Only cache the variable if it's been defined.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/db378801ccc9
branches:  trunk
changeset: 493700:db378801ccc9
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu May 12 18:07:30 2005 +0000

description:
Only cache the variable if it's been defined.

diffstat:

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

diffs (20 lines):

diff -r c98670b1f223 -r db378801ccc9 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Thu May 12 17:55:33 2005 +0000
+++ b/mk/bsd.pkg.mk     Thu May 12 18:07:30 2005 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1640 2005/05/12 01:14:05 jlam Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1641 2005/05/12 18:07:30 jlam Exp $
 #
 # This file is in the public domain.
 #
@@ -5026,8 +5026,10 @@
 .  if !empty(PKG_PHASE:M${_phase_})
        ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${.TARGET}.tmp
 .    for _var_ in ${MAKEVARS:O:u}
+.      if defined(${_var_})
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
        ${ECHO} ${_var_}"=      "${${_var_}:Q} >> ${.TARGET}.tmp
+.      endif
 .    endfor
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
        if ${TEST} -f ${.TARGET}.tmp; then                              \



Home | Main Index | Thread Index | Old Index