From e1e036ca755d5b89fb059bb5d66fad9b973a21da Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 10 Aug 2008 01:10:47 +0000 Subject: Remove pointless `cd` calls in dyn_configure() and dyn_compile(). svn path=/main/trunk/; revision=11380 --- bin/ebuild.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 67f0d3aca..704148ef3 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -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 -- cgit v1.2.3-1-g7c22