Imediatly stop on failure

This commit is contained in:
Romain Tartière 2017-06-26 11:25:37 +02:00
parent d0f78c4880
commit 6ef62014d1

View file

@ -2,7 +2,7 @@
cd $1 cd $1
if [ "$BLD" = autotools ]; then if [ "$BLD" = autotools ]; then
set -x set -ex
autoreconf -vis autoreconf -vis
mkdir build-autotools mkdir build-autotools
cd build-autotools cd build-autotools
@ -10,7 +10,7 @@ if [ "$BLD" = autotools ]; then
make make
make install make install
elif [ "$BLD" = cmake ]; then elif [ "$BLD" = cmake ]; then
set -x set -ex
mkdir build-cmake mkdir build-cmake
cd build-cmake cd build-cmake
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local .. cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local ..