summaryrefslogtreecommitdiff
path: root/mk/help
diff options
context:
space:
mode:
authorrillig <rillig>2008-01-05 19:48:27 +0000
committerrillig <rillig>2008-01-05 19:48:27 +0000
commit875ccdd53722c6c912cf397db7507355762d252e (patch)
tree6c5d257d604382289e65a5dd902a0d9f19db217f /mk/help
parentdb91a18ce0d9b983d38ed9b624e0ed5d89c63ac7 (diff)
downloadpkgsrc-875ccdd53722c6c912cf397db7507355762d252e.tar.gz
Upper-case keywords may also end with a colon. This is used in
mk/check/check-portability.mk.
Diffstat (limited to 'mk/help')
-rw-r--r--mk/help/help.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/help/help.awk b/mk/help/help.awk
index a953d111eaa..1c7510df694 100644
--- a/mk/help/help.awk
+++ b/mk/help/help.awk
@@ -1,4 +1,4 @@
-# $NetBSD: help.awk,v 1.20 2008/01/05 17:55:48 rillig Exp $
+# $NetBSD: help.awk,v 1.21 2008/01/05 19:48:27 rillig Exp $
#
# This program extracts the inline documentation from *.mk files.
@@ -136,7 +136,7 @@ NF >= 1 && !/^[\t.]/ && !/^#*$/ {
# Automatic keywords must be either upper- or lower-case.
# Lower-case keywords (make targets) must end with a colon.
- } else if (w !~ /^[A-Za-z].*[0-9A-Za-z]$/) {
+ } else if (w !~ /^[A-Za-z].*[0-9A-Za-z]:?$/) {
# Keywords must start with a letter and end with a letter
# or digit.