| @@ -1,17 +1,17 @@ | | | @@ -1,17 +1,17 @@ |
1 | # $NetBSD: plist-macros.awk,v 1.2 2008/01/05 17:03:04 rillig Exp $ | | 1 | # $NetBSD: plist-macros.awk,v 1.3 2024/03/29 00:16:25 js Exp $ |
2 | | | 2 | |
3 | BEGIN { | | 3 | BEGIN { |
4 | IMAKE_MANINSTALL = getenv_or_die("IMAKE_MANINSTALL") | | 4 | IMAKE_MANINSTALL = ENVIRON["IMAKE_MANINSTALL"] |
5 | } | | 5 | } |
6 | | | 6 | |
7 | # XXX: Don't use this macro, since it is not yet supported. | | 7 | # XXX: Don't use this macro, since it is not yet supported. |
8 | # | | 8 | # |
9 | # @imake-man dir basename extension | | 9 | # @imake-man dir basename extension |
10 | # | | 10 | # |
11 | # Creates up to two PLIST entries for man pages of imake-style programs. | | 11 | # Creates up to two PLIST entries for man pages of imake-style programs. |
12 | # | | 12 | # |
13 | /^@imake-man/ { | | 13 | /^@imake-man/ { |
14 | if (IMAKE_MANINSTALL ~ /catinstall/) { | | 14 | if (IMAKE_MANINSTALL ~ /catinstall/) { |
15 | n = split($2, components, "/") | | 15 | n = split($2, components, "/") |
16 | sub("man", "cat", components[n]) | | 16 | sub("man", "cat", components[n]) |
17 | print join(components, 1, n, "/") "/" $3 ".0" | | 17 | print join(components, 1, n, "/") "/" $3 ".0" |