diff options
author | jlam <jlam@pkgsrc.org> | 2006-03-09 16:39:39 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-03-09 16:39:39 +0000 |
commit | ddf2e29cda5a4b811e500f1ae878af5bd61f6408 (patch) | |
tree | 5037200a848e0e0eaa25f63b49e303de6452f428 | |
parent | 547ad9491160951188dc8ee3dd39fffb6bf56648 (diff) | |
download | pkgsrc-ddf2e29cda5a4b811e500f1ae878af5bd61f6408.tar.gz |
Check that INFO_FILES is defined before using its value. Fixes PR pkg/33043.
-rw-r--r-- | mk/plist/print-plist.mk | 4 |
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 |