commit:     bc16472a156e4edf40d38251bb59e2bbc79c79a5
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 24 05:25:28 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Mar 24 05:25:28 2016 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=bc16472a

catalyst-auto: allow configs to set BUILD_SRCDIR_BASE

At least the amd64/x86 ones do this via ../config/build.env files.

 tools/catalyst-auto | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index 75f6a84..cc20505 100755
--- a/tools/catalyst-auto
+++ b/tools/catalyst-auto
@@ -170,7 +170,8 @@ if [[ $doneconfig -eq 0 ]]; then
       exit 1
 fi
 
-BUILD_SRCDIR_BASE=$(catalyst_var storedir)
+# Some configs will set this explicitly, so don't clobber it.
+: ${BUILD_SRCDIR_BASE:=$(catalyst_var storedir)}
 
 # See if we had a recent success.
 if [[ ${lastrun} -ne 0 ]]; then

Reply via email to