pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/help Added some more formats that are needed to rec...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2641e037f8e4
branches:  trunk
changeset: 521083:2641e037f8e4
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Nov 04 22:05:43 2006 +0000

description:
Added some more formats that are needed to recognize SMART_MESSAGES in
mk/defaults/mk.conf.

diffstat:

 mk/help/help.awk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 7093f0c52764 -r 2641e037f8e4 mk/help/help.awk
--- a/mk/help/help.awk  Sat Nov 04 22:04:44 2006 +0000
+++ b/mk/help/help.awk  Sat Nov 04 22:05:43 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: help.awk,v 1.1 2006/10/23 14:40:15 rillig Exp $
+# $NetBSD: help.awk,v 1.2 2006/11/04 22:05:43 rillig Exp $
 #
 
 BEGIN {
@@ -36,7 +36,8 @@
        w2 = ($2 == tolower($2)) ? toupper($2) : $2;
 
        if ((w1 == uctopic"?=") ||
-           (w1 == "#"uctopic"=") ||
+           (index(w1, "#"uctopic"=") == 1) ||
+           (index(w1, "#"uctopic"?=") == 1) ||
            (w1 == "#" && last_line_was_empty &&
             (w2 == uctopic || w2 == uctopic":"))) {
                var = 1;



Home | Main Index | Thread Index | Old Index