summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-01-06 19:53:01 +0000
committerrillig <rillig@pkgsrc.org>2007-01-06 19:53:01 +0000
commitb51c2d32b349cede29322f6165222a1f87c4f61b (patch)
tree501097fb17de71aa89595a0dc72ec47c16df84e0 /mk/scripts
parentd037715fbc9842bd53b02d996d50534178f24f1b (diff)
downloadpkgsrc-b51c2d32b349cede29322f6165222a1f87c4f61b.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