diff options
author | Davide Pesavento <pesa@gentoo.org> | 2014-10-31 00:57:49 +0000 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2014-10-31 00:57:49 +0000 |
commit | bcfcfaa4026289e2bac32196a52b0a9958a0175d (patch) | |
tree | a5fb8c5b819b88ca199cc4b78495cc69c2f9d2bf /eclass/multibuild.eclass | |
parent | Version bump; drop old (diff) | |
download | gentoo-2-bcfcfaa4026289e2bac32196a52b0a9958a0175d.tar.gz gentoo-2-bcfcfaa4026289e2bac32196a52b0a9958a0175d.tar.bz2 gentoo-2-bcfcfaa4026289e2bac32196a52b0a9958a0175d.zip |
Make sure BUILD_DIR exists before pushd'ing into it.
Diffstat (limited to 'eclass/multibuild.eclass')
-rw-r--r-- | eclass/multibuild.eclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/multibuild.eclass b/eclass/multibuild.eclass index de5804dd883a..03e628077f3e 100644 --- a/eclass/multibuild.eclass +++ b/eclass/multibuild.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/multibuild.eclass,v 1.18 2014/05/10 21:36:49 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/multibuild.eclass,v 1.19 2014/10/31 00:57:49 pesa Exp $ # @ECLASS: multibuild # @MAINTAINER: @@ -237,6 +237,7 @@ run_in_build_dir() { [[ ${#} -ne 0 ]] || die "${FUNCNAME}: no command specified." [[ ${BUILD_DIR} ]] || die "${FUNCNAME}: BUILD_DIR not set." + mkdir -p "${BUILD_DIR}" || die pushd "${BUILD_DIR}" >/dev/null || die "${@}" ret=${?} |