Fri Mar 29 00:16:25 2024 UTC (60d)
mk/plist/plist-macros.awk: Don't use getenv_or_die

This makes the bootstrap on QNX get much further.


(js)
diff -r1.2 -r1.3 pkgsrc/mk/plist/plist-macros.awk

cvs diff -r1.2 -r1.3 pkgsrc/mk/plist/plist-macros.awk (expand / switch to unified diff)

--- pkgsrc/mk/plist/plist-macros.awk 2008/01/05 17:03:04 1.2
+++ pkgsrc/mk/plist/plist-macros.awk 2024/03/29 00:16:25 1.3
@@ -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
3BEGIN { 3BEGIN {
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"