pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/plist Avoid () as a regular expression as the inter...
details: https://anonhg.NetBSD.org/pkgsrc/rev/05e358142ed2
branches: trunk
changeset: 511427:05e358142ed2
user: jlam <jlam%pkgsrc.org@localhost>
date: Fri Apr 14 13:23:42 2006 +0000
description:
Avoid () as a regular expression as the interpretation seems to be
implementation-defined by various awks.
diffstat:
mk/plist/plist-info.awk | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 8dd62b4e0701 -r 05e358142ed2 mk/plist/plist-info.awk
--- a/mk/plist/plist-info.awk Fri Apr 14 12:27:00 2006 +0000
+++ b/mk/plist/plist-info.awk Fri Apr 14 13:23:42 2006 +0000
@@ -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 @@
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 ")"
+ }
}
###
Home |
Main Index |
Thread Index |
Old Index