Remove pointless `cd` calls in dyn_configure() and dyn_compile().
authorZac Medico <zmedico@gentoo.org>
Sun, 10 Aug 2008 01:10:47 +0000 (01:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 10 Aug 2008 01:10:47 +0000 (01:10 -0000)
svn path=/main/trunk/; revision=11380

bin/ebuild.sh

index 67f0d3aca34d5187e559f859b4df63ba9933e70e..704148ef351af196c85ad6f9d8ee4c6d0af97c29 100755 (executable)
@@ -872,10 +872,9 @@ dyn_configure() {
 
        vecho ">>> Configuring source in $srcdir ..."
        ebuild_phase src_configure
+       touch "$PORTAGE_BUILDDIR"/.configured
        vecho ">>> Source configured."
-       #|| abort_configure "fail"
-       cd "$PORTAGE_BUILDDIR"
-       touch .configured
+
        [[ $(type -t post_src_configure) = function ]] && \
                qa_call post_src_configure
 
@@ -897,10 +896,9 @@ dyn_compile() {
 
        vecho ">>> Compiling source in ${srcdir} ..."
        ebuild_phase src_compile
+       touch "$PORTAGE_BUILDDIR"/.compiled
        vecho ">>> Source compiled."
-       #|| abort_compile "fail"
-       cd "${PORTAGE_BUILDDIR}"
-       touch .compiled
+
        [ "$(type -t post_src_compile)" == "function" ] && qa_call post_src_compile
 
        trap SIGINT SIGQUIT