From b51c2d32b349cede29322f6165222a1f87c4f61b Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 6 Jan 2007 19:53:01 +0000 Subject: Added the FAIL command, which can be prepended to an arbitrary shell command, making it return with a non-zero exit status. The first use of it is in a command called FAIL_MSG, which prints an error message and exits immediately. ERROR_MSG itself doesn't do that. --- mk/scripts/fail | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 mk/scripts/fail (limited to 'mk/scripts') diff --git a/mk/scripts/fail b/mk/scripts/fail new file mode 100644 index 00000000000..af1e364c614 --- /dev/null +++ b/mk/scripts/fail @@ -0,0 +1,5 @@ +#! /bin/sh +# $NetBSD: fail,v 1.1 2007/01/06 19:53:01 rillig Exp $ + +"$@" +exit 1 -- cgit v1.2.3