diff options
author | rillig <rillig@pkgsrc.org> | 2019-04-28 12:10:24 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2019-04-28 12:10:24 +0000 |
commit | e46e7ea67ca400fc26ba68f5cf755c72361fb223 (patch) | |
tree | b3d5d336bf4f4e3252682fbaa9eb01da296533c0 /mk/help | |
parent | df923e9589c1fc6f68bf66a7fc63a06784424053 (diff) | |
download | pkgsrc-e46e7ea67ca400fc26ba68f5cf755c72361fb223.tar.gz |
mk/help: do not provide help for topics starting with underscore
These are reserved for the pkgsrc infrastructure.
Diffstat (limited to 'mk/help')
-rw-r--r-- | mk/help/help.awk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/help/help.awk b/mk/help/help.awk index 2feb988b9b8..9e5c25c0650 100644 --- a/mk/help/help.awk +++ b/mk/help/help.awk @@ -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 @@ NF >= 1 && !/^[\t.]/ && !/^#*$/ && !/^#\t\t/ { # 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. |