pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/help Upper-case keywords may also end with a colon....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e952563afc30
branches:  trunk
changeset: 537266:e952563afc30
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jan 05 19:48:27 2008 +0000

description:
Upper-case keywords may also end with a colon. This is used in
mk/check/check-portability.mk.

diffstat:

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

diffs (18 lines):

diff -r 8711ab4c5c22 -r e952563afc30 mk/help/help.awk
--- a/mk/help/help.awk  Sat Jan 05 19:38:46 2008 +0000
+++ b/mk/help/help.awk  Sat Jan 05 19:48:27 2008 +0000
@@ -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 @@
                # 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.
 



Home | Main Index | Thread Index | Old Index