summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-03-24 01:25:28 -0400
committerMike Frysinger <vapier@gentoo.org>2016-03-24 01:25:28 -0400
commitbc16472a156e4edf40d38251bb59e2bbc79c79a5 (patch)
tree8a4401fa3e9633a1d94c0a1e33240ac95dd0ebcc
parentDon't hardcode format for source_subpath. (diff)
downloadreleng-bc16472a156e4edf40d38251bb59e2bbc79c79a5.tar.gz
releng-bc16472a156e4edf40d38251bb59e2bbc79c79a5.tar.bz2
releng-bc16472a156e4edf40d38251bb59e2bbc79c79a5.zip
catalyst-auto: allow configs to set BUILD_SRCDIR_BASE
At least the amd64/x86 ones do this via ../config/build.env files.
-rwxr-xr-xtools/catalyst-auto3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index 75f6a84a..cc205052 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