diff options
author | rillig <rillig@pkgsrc.org> | 2007-11-13 16:52:39 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-11-13 16:52:39 +0000 |
commit | bc38d93c53e0966eca974676956747fd579c1230 (patch) | |
tree | cf8e28d924ef2cfb258053be1eaa88e361a108e2 /mk/help | |
parent | 6056f903c437cfce9b430a46b0ff12471d370765 (diff) | |
download | pkgsrc-bc38d93c53e0966eca974676956747fd579c1230.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.awk | 6 |
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; |