summaryrefslogtreecommitdiff
path: root/mk/plist
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-04-14 13:23:42 +0000
committerjlam <jlam@pkgsrc.org>2006-04-14 13:23:42 +0000
commitc3dcd17e537ca6610b0eec8c3e92770712d21295 (patch)
tree6767601f752276e9e861d4792a5ab22486710b2b /mk/plist
parentfbf3c9f5f06f9823851367d80f3a4ad38e0aebc3 (diff)
downloadpkgsrc-c3dcd17e537ca6610b0eec8c3e92770712d21295.tar.gz
Avoid () as a regular expression as the interpretation seems to be
implementation-defined by various awks.
Diffstat (limited to 'mk/plist')
-rw-r--r--mk/plist/plist-info.awk8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/plist/plist-info.awk b/mk/plist/plist-info.awk
index 6dfa63c0b1c..79f8b81224d 100644
--- a/mk/plist/plist-info.awk
+++ b/mk/plist/plist-info.awk
@@ -1,4 +1,4 @@
-# $NetBSD: plist-info.awk,v 1.11 2006/04/12 20:49:12 jlam Exp $
+# $NetBSD: plist-info.awk,v 1.12 2006/04/14 13:23:42 jlam Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -64,8 +64,10 @@ BEGIN {
TEST = ENVIRON["TEST"] ? ENVIRON["TEST"] : "test"
IGNORE_INFO_REGEXP = ENVIRON["IGNORE_INFO_PATH"] ? ENVIRON["IGNORE_INFO_PATH"] : ""
- gsub(":", "|", IGNORE_INFO_REGEXP)
- IGNORE_INFO_REGEXP = "(" IGNORE_INFO_REGEXP ")"
+ if (IGNORE_INFO_REGEXP != "") {
+ gsub(":", "|", IGNORE_INFO_REGEXP)
+ IGNORE_INFO_REGEXP = "(" IGNORE_INFO_REGEXP ")"
+ }
}
###