summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authorrillig <rillig>2007-01-06 19:53:01 +0000
committerrillig <rillig>2007-01-06 19:53:01 +0000
commitc8c28b66cb3990e64a5d3177c15e5550e4ebf120 (patch)
tree501097fb17de71aa89595a0dc72ec47c16df84e0 /mk/scripts
parentc69b6aecf3a00d70da364832a6f943195f3f7ffd (diff)
downloadpkgsrc-c8c28b66cb3990e64a5d3177c15e5550e4ebf120.tar.gz
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.
Diffstat (limited to 'mk/scripts')
-rw-r--r--mk/scripts/fail5
1 files changed, 5 insertions, 0 deletions
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