diff options
author | hubertf <hubertf> | 2003-11-20 00:04:12 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2003-11-20 00:04:12 +0000 |
commit | d99feade63073c8d955a308bc8e6dc18d8140d41 (patch) | |
tree | 15545767a84e168d39029869aa39fec05dad2dbc /mk | |
parent | 2bd0122d02565584b1d47956bb42e2991a9c4c96 (diff) | |
download | pkgsrc-d99feade63073c8d955a308bc8e6dc18d8140d41.tar.gz |
Catch errors from pre-build, and abort if it's not 0.
Diffstat (limited to 'mk')
-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 |