diff options
author | hubertf <hubertf@pkgsrc.org> | 2003-11-20 00:04:12 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2003-11-20 00:04:12 +0000 |
commit | 8d6cbb6f707528628ddb75ecb986aef8488e9565 (patch) | |
tree | 15545767a84e168d39029869aa39fec05dad2dbc /mk/bulk | |
parent | 6c4ff55ea411057ff69061f772c13630ed879ad7 (diff) | |
download | pkgsrc-8d6cbb6f707528628ddb75ecb986aef8488e9565.tar.gz |
Catch errors from pre-build, and abort if it's not 0.
Diffstat (limited to 'mk/bulk')
-rw-r--r-- | mk/bulk/build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/bulk/build b/mk/bulk/build index 4b5c897b59b..e970bfe4366 100644 --- a/mk/bulk/build +++ b/mk/bulk/build @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: build,v 1.28 2003/05/06 17:42:03 jmmv Exp $ +# $NetBSD: build,v 1.29 2003/11/20 00:04:12 hubertf Exp $ # # Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@netbsd.org> @@ -93,6 +93,11 @@ if [ "$1" = "restart" ]; then echo Restarting - skipping pre-build script else sh mk/bulk/pre-build # make veryveryclean :) + if [ $? != 0 ] + then + echo "Error during bulk-build preparations, aborting." + exit 1 + fi fi fail=no |