summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-03-09 16:39:39 +0000
committerjlam <jlam@pkgsrc.org>2006-03-09 16:39:39 +0000
commitddf2e29cda5a4b811e500f1ae878af5bd61f6408 (patch)
tree5037200a848e0e0eaa25f63b49e303de6452f428 /mk
parent547ad9491160951188dc8ee3dd39fffb6bf56648 (diff)
downloadpkgsrc-ddf2e29cda5a4b811e500f1ae878af5bd61f6408.tar.gz
Check that INFO_FILES is defined before using its value. Fixes PR pkg/33043.
Diffstat (limited to 'mk')
-rw-r--r--mk/plist/print-plist.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/plist/print-plist.mk b/mk/plist/print-plist.mk
index eedbf1c3129..fb57695ff11 100644
--- a/mk/plist/print-plist.mk
+++ b/mk/plist/print-plist.mk
@@ -1,4 +1,4 @@
-# $NetBSD: print-plist.mk,v 1.3 2006/01/14 00:58:37 seb Exp $
+# $NetBSD: print-plist.mk,v 1.4 2006/03/09 16:39:39 jlam Exp $
###
### Automatic PLIST generation
@@ -36,7 +36,7 @@ _PRINT_PLIST_AWK_IGNORE+= || ($$0 ~ /^info\/dir$$/)
.if defined(INFO_DIR) && empty(INFO_DIR:Minfo)
_PRINT_PLIST_AWK_IGNORE+= || ($$0 ~ /^${INFO_DIR:S|/|\\/|g}\/dir$$/)
.endif
-.if !empty(INFO_FILES)
+.if defined(INFO_FILES) && !empty(INFO_FILES)
. for _f_ in ${INFO_FILES}
_PRINT_PLIST_AWK_IGNORE+= || ($$0 ~ /^${INFO_DIR:S|/|\\/|g}\/${_f_:S|+|\+|g}(-[0-9]+)?(\.gz)?$$/)
. endfor