pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/help mk/help: do not provide help for topics starti...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2d1340ce7348
branches:  trunk
changeset: 394997:2d1340ce7348
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Apr 28 12:10:24 2019 +0000

description:
mk/help: do not provide help for topics starting with underscore

These are reserved for the pkgsrc infrastructure.

diffstat:

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

diffs (18 lines):

diff -r b08e85a46ff6 -r 2d1340ce7348 mk/help/help.awk
--- a/mk/help/help.awk  Sun Apr 28 11:56:00 2019 +0000
+++ b/mk/help/help.awk  Sun Apr 28 12:10:24 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: help.awk,v 1.32 2019/03/03 16:47:58 rillig Exp $
+# $NetBSD: help.awk,v 1.33 2019/04/28 12:10:24 rillig Exp $
 #
 
 # This program extracts the inline documentation from *.mk files.
@@ -172,7 +172,7 @@
                # Words in mixed case are not taken as keywords. If you
                # want them anyway, list them in a "Keywords:" line.
 
-       } else if (w !~ /^[_A-Za-z][-0-9A-Z_a-z]*[0-9A-Za-z](:|\?=|=)?$/) {
+       } else if (w !~ /^[A-Za-z][-0-9A-Z_a-z]*[0-9A-Za-z](:|\?=|=)?$/) {
                # Keywords must consist only of letters, digits, hyphens
                # and underscores; except for some trailing type specifier.
 



Home | Main Index | Thread Index | Old Index