Skip to content
Snippets Groups Projects
Commit 69de1fb0 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Scipts install and build end with error code when build fails.

parent 0a926954
No related branches found
No related tags found
1 merge request!44Tutorials
......@@ -202,7 +202,9 @@ if [[ "$make" != "make" ]] && [[ "$VERBOSE" ]]; then
VERBOSE="-v"
fi
$make ${VERBOSE} $make_target
if ! $make ${VERBOSE} $make_target; then
exit 1
fi
if [[ ${WITH_DOC} == "yes" ]]; then
"$ROOT_DIR/Documentation/build" --prefix="$PREFIX"
......
......@@ -35,7 +35,10 @@ if [[ ${BUILD_DEBUG} == "yes" ]]; then
mkdir Debug
fi
pushd Debug
../build --root-dir=.. --build=Debug --install=yes ${OPTIONS}
if ! ../build --root-dir=.. --build=Debug --install=yes ${OPTIONS}; then
echo "Debug build failed."
exit 1
fi
popd
fi
......@@ -44,7 +47,10 @@ if [[ ${BUILD_RELEASE} == "yes" ]]; then
mkdir Release
fi
pushd Release
../build --root-dir=.. --build=Release --install=yes ${OPTIONS};
if ! ../build --root-dir=.. --build=Release --install=yes ${OPTIONS}; then
echo "Release build failed."
exit 1
fi
popd
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment