summaryrefslogtreecommitdiff
path: root/mk/help
diff options
context:
space:
mode:
authorrillig <rillig>2007-11-13 16:52:39 +0000
committerrillig <rillig>2007-11-13 16:52:39 +0000
commit9121b5e9d89bd2bbe2ca3d8e644b4ff65be9f4af (patch)
treecf8e28d924ef2cfb258053be1eaa88e361a108e2 /mk/help
parentddefd5f4a4e535224e1b0e1f0358747fba9179f1 (diff)
downloadpkgsrc-9121b5e9d89bd2bbe2ca3d8e644b4ff65be9f4af.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/help')
-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;