pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Quote '+' in awk regexp related to PLIST and INFO_F...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f8468a5ff6b1
branches:  trunk
changeset: 468714:f8468a5ff6b1
user:      seb <seb%pkgsrc.org@localhost>
date:      Mon Feb 16 11:28:13 2004 +0000

description:
Quote '+' in awk regexp related to PLIST and INFO_FILES.
As seen in devel/libg++ with its libg++.info file...

diffstat:

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

diffs (27 lines):

diff -r d5ccd7ed8762 -r f8468a5ff6b1 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Mon Feb 16 11:21:13 2004 +0000
+++ b/mk/bsd.pkg.mk     Mon Feb 16 11:28:13 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1405 2004/02/14 18:29:17 seb Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1406 2004/02/16 11:28:13 seb Exp $
 #
 # This file is in the public domain.
 #
@@ -4565,7 +4565,7 @@
 .endif
 .if !empty(INFO_FILES)
 .  for _f_ in ${INFO_FILES}
-_PRINT_PLIST_AWK_IGNORE+=      || ($$0 ~ /^${INFO_DIR:S|/|\\/|g}\/${_f_}(-[0-9]+)?$$/)
+_PRINT_PLIST_AWK_IGNORE+=      || ($$0 ~ /^${INFO_DIR:S|/|\\/|g}\/${_f_:S|+|\+|g}(-[0-9]+)?$$/)
 .  endfor
 .endif
 
@@ -5018,7 +5018,7 @@
        sub("^", "${LS} '\''${PREFIX}/${INFO_DIR}/", cmd);              \
        sub("$$", "'\''*", cmd);                                        \
        while ((cmd | getline l) > 0) {                                 \
-               if (match(l, ".*/${_f_}(-[0-9]+)?$$")) {                \
+               if (match(l, ".*/${_f_:S|+|\\\+|g}(-[0-9]+)?$$")) {     \
                        sub("^${PREFIX}/", "", l);                      \
                        print l;                                        \
                }                                                       \



Home | Main Index | Thread Index | Old Index