From: Nikoli Date: Mon, 25 Jan 2016 14:04:10 +0000 (+1100) Subject: cmake-utils.eclass: check exit codes of executed commands X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=83948becf477631f74025092000c48044c75143a;p=gentoo.git cmake-utils.eclass: check exit codes of executed commands Gentoo-bug: 544966 --- diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index b0e9bb021327..58f93accb123 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -219,7 +219,7 @@ _check_build_dir() { # Backwards compatibility for getting the value. CMAKE_BUILD_DIR=${BUILD_DIR} - mkdir -p "${BUILD_DIR}" + mkdir -p "${BUILD_DIR}" || die echo ">>> Working in BUILD_DIR: \"$BUILD_DIR\"" } @@ -431,7 +431,7 @@ enable_cmake-utils_src_configure() { [[ "${CMAKE_REMOVE_MODULES}" == "yes" ]] && { local name for name in ${CMAKE_REMOVE_MODULES_LIST} ; do - find "${S}" -name ${name}.cmake -exec rm -v {} + + find "${S}" -name ${name}.cmake -exec rm -v {} + || die done }