From d77e699759752e1c7cf80ca483274213763badc2 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Sun, 1 Dec 2002 05:53:43 +0000 Subject: add some more error checking. In particular if the bulk-cache creation fails, then abort the build. --- mk/bulk/build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mk/bulk') diff --git a/mk/bulk/build b/mk/bulk/build index 0ed7f095f74..fac39fca92a 100644 --- a/mk/bulk/build +++ b/mk/bulk/build @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: build,v 1.25 2002/08/22 08:21:30 jlam Exp $ +# $NetBSD: build,v 1.26 2002/12/01 05:53:43 dmcmahill Exp $ # # Copyright (c) 1999, 2000 Hubert Feyrer @@ -157,6 +157,10 @@ done cd ${USR_PKGSRC} if [ "$1" != "restart" ]; then cd ${USR_PKGSRC} && ${BMAKE} bulk-cache + if [ $? != 0 ]; then + echo "$0: Cache creation failed. Aborting build." + exit 1 + fi fi echo "Starting actual build using the order specified in $ORDERFILE..." -- cgit v1.2.3