pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/plist mk/plist: fail fast on programming mistake



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b4e6626c7627
branches:  trunk
changeset: 438917:b4e6626c7627
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Sep 12 06:55:08 2020 +0000

description:
mk/plist: fail fast on programming mistake

diffstat:

 mk/plist/plist-functions.awk |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r a8304ffc29d2 -r b4e6626c7627 mk/plist/plist-functions.awk
--- a/mk/plist/plist-functions.awk      Sat Sep 12 06:51:15 2020 +0000
+++ b/mk/plist/plist-functions.awk      Sat Sep 12 06:55:08 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: plist-functions.awk,v 1.3 2018/08/22 20:48:37 maya Exp $
+# $NetBSD: plist-functions.awk,v 1.4 2020/09/12 06:55:08 rillig Exp $
 #
 # Copyright (c) 2006 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -55,4 +55,5 @@
        if (varname in ENVIRON)
                return ENVIRON[varname]
        print "ERROR: "varname" must be defined." | "cat 1>&2"
+       exit(1)
 }



Home | Main Index | Thread Index | Old Index