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: remove unnecessary backslash before #...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6b6b291d13e6
branches: trunk
changeset: 338470:6b6b291d13e6
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Aug 25 20:30:11 2019 +0000
description:
mk/help: remove unnecessary backslash before # in AWK program
GNU Awk on Cygwin warns about these.
diffstat:
mk/help/help.awk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 1e809eb42d19 -r 6b6b291d13e6 mk/help/help.awk
--- a/mk/help/help.awk Sun Aug 25 18:53:58 2019 +0000
+++ b/mk/help/help.awk Sun Aug 25 20:30:11 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: help.awk,v 1.33 2019/04/28 12:10:24 rillig Exp $
+# $NetBSD: help.awk,v 1.34 2019/08/25 20:30:11 rillig Exp $
#
# This program extracts the inline documentation from *.mk files.
@@ -159,7 +159,7 @@
# Everything else is assumed to belong to the explaining text.
#
NF >= 1 && !/^[\t.]/ && !/^#*$/ && !/^#\t\t/ {
- w = ($1 ~ /^\#[A-Z]/) ? substr($1, 2) : ($1 == "#") ? $2 : $1;
+ w = ($1 ~ /^#[A-Z]/) ? substr($1, 2) : ($1 == "#") ? $2 : $1;
# Reduce VAR.<param>, VAR.${param} and VAR.* to VAR.
sub(/\.[<$].*[>}]$/, "", w);
Home |
Main Index |
Thread Index |
Old Index