diff options
author | jlam <jlam@pkgsrc.org> | 2006-02-07 18:42:38 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-02-07 18:42:38 +0000 |
commit | d55d50a63519a7f984e81eaa37cc3295b6d33203 (patch) | |
tree | 0dffc1284ff2b27a307744e8e4520ec96a978055 /mk/plist/plist-info.awk | |
parent | cccdff99d1305093828a7ec09b07e9d2eab78553 (diff) | |
download | pkgsrc-d55d50a63519a7f984e81eaa37cc3295b6d33203.tar.gz |
Provide default values for various variables if they're not present in
the shell environment array ENVIRON.
Diffstat (limited to 'mk/plist/plist-info.awk')
-rw-r--r-- | mk/plist/plist-info.awk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mk/plist/plist-info.awk b/mk/plist/plist-info.awk index f2e4b03c7a9..4cb2baae46d 100644 --- a/mk/plist/plist-info.awk +++ b/mk/plist/plist-info.awk @@ -1,4 +1,4 @@ -# $NetBSD: plist-info.awk,v 1.3 2006/02/05 16:21:07 rillig Exp $ +# $NetBSD: plist-info.awk,v 1.4 2006/02/07 18:42:38 jlam Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -54,11 +54,11 @@ ### the path to a "test" binary. ### BEGIN { - INFO_DIR = ENVIRON["INFO_DIR"] - LS = ENVIRON["LS"] - MANZ = ENVIRON["MANZ"] - PREFIX = ENVIRON["PREFIX"] - TEST = ENVIRON["TEST"] + INFO_DIR = ENVIRON["INFO_DIR"] ? ENVIRON["INFO_DIR"] : "info" + LS = ENVIRON["LS"] ? ENVIRON["LS"] : "ls" + MANZ = ENVIRON["MANZ"] ? ENVIRON["MANZ"] : "no" + PREFIX = ENVIRON["PREFIX"] ? ENVIRON["PREFIX"] : "/usr/pkg" + TEST = ENVIRON["TEST"] ? ENVIRON["TEST"] : "test" } ### |