commit: 83948becf477631f74025092000c48044c75143a
Author: Nikoli <nikoli <AT> gmx <DOT> us>
AuthorDate: Mon Jan 25 14:04:10 2016 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Mon Jan 25 14:07:03 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83948bec
cmake-utils.eclass: check exit codes of executed commands
Gentoo-bug: 544966
eclass/cmake-utils.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index b0e9bb0..58f93ac 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
}