Bail if cmake or make fails. PRint a friendly message if you make it to the end.

This commit is contained in:
Will Rosecrans
2018-01-08 15:07:14 -08:00
parent 6fa4945da0
commit a6e817756e

View File

@@ -5,11 +5,11 @@ if [ -e CMakeCache.txt ]; then
fi fi
mkdir -p build_cmake mkdir -p build_cmake
cd build_cmake cd build_cmake
cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=OFF -DUSE_DOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=Release .. cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=OFF -DUSE_DOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=Release .. || exit 1
make -j $(command nproc 2>/dev/null || echo 12) make -j $(command nproc 2>/dev/null || echo 12) || exit 1
cd examples cd examples
cd pybullet cd pybullet
if [ -e pybullet.dylib ]; then if [ -e pybullet.dylib ]; then
ln -f -s pybullet.dylib pybullet.so ln -f -s pybullet.dylib pybullet.so
fi fi
echo "Completed build of Bullet."