summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2007-11-13 16:52:39 +0000
committerrillig <rillig>2007-11-13 16:52:39 +0000
commitad749f3567458cda0988070cfda7c5f2ef9a4b4e (patch)
treecf8e28d924ef2cfb258053be1eaa88e361a108e2 /mk
parente1f068fcb007ec75d723676f7f310fce08b162e5 (diff)
downloadpkgsrc-ad749f3567458cda0988070cfda7c5f2ef9a4b4e.tar.gz
Replaced the use of gensub() with sub(), since the former is not
mentioned in The Open Group's specification of awk. Specifically, FreeBSD's awk doesn't have it.
Diffstat (limited to 'mk')
-rw-r--r--mk/help/help.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/help/help.awk b/mk/help/help.awk
index 465cc3bd866..46ba9bf4ca7 100644
--- a/mk/help/help.awk
+++ b/mk/help/help.awk
@@ -1,4 +1,4 @@
-# $NetBSD: help.awk,v 1.16 2007/08/14 18:04:16 rillig Exp $
+# $NetBSD: help.awk,v 1.17 2007/11/13 16:52:39 rillig Exp $
#
# This program extracts the inline documentation from *.mk files.
@@ -100,8 +100,8 @@ $1 ~ /:$/ && $2 == ".PHONY" {
#
NF >= 1 {
# Reduce FOO.<param> and FOO.${param} to FOO.
- w1 = gensub(/\.[<$].*[>}]$/, "", "g", $1);
- w2 = gensub(/\.[<$].*[>}]$/, "", "g", $2);
+ w1 = $1; sub(/\.[<$].*[>}]$/, "", w1);
+ w2 = $2; sub(/\.[<$].*[>}]$/, "", w2);
# Convert all-lowercase words to all-uppercase.
w1 = (w1 == tolower(w1)) ? toupper(w1) : w1;