aboutsummaryrefslogtreecommitdiffstats
path: root/soong.bash
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-04-08 16:02:08 -0700
committerColin Cross <ccross@google.com>2015-04-09 00:13:44 +0000
commit10787d046d0cba050e6d44807fda75a09063efe1 (patch)
tree8029486c425a4ddda0ff714f8f7f3a40f2c31ba1 /soong.bash
parentc0b06f191f99379d3e8111f3bb149a53b1054422 (diff)
downloadbuild_soong-10787d046d0cba050e6d44807fda75a09063efe1.tar.gz
build_soong-10787d046d0cba050e6d44807fda75a09063efe1.tar.bz2
build_soong-10787d046d0cba050e6d44807fda75a09063efe1.zip
Fix running soong from different directory
${BOOTSTRAP} already contains ${BUILDDIR} Change-Id: Ie1303e4b2a5ce415f565ffc4b6125071e427bd43
Diffstat (limited to 'soong.bash')
-rwxr-xr-xsoong.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/soong.bash b/soong.bash
index fab15de5..b282a1e7 100755
--- a/soong.bash
+++ b/soong.bash
@@ -8,12 +8,12 @@ BOOTSTRAP=${BUILDDIR}/.soong.bootstrap
# The source directory path and operating system will get written to
# .soong.bootstrap by the bootstrap script.
-if [ ! -f ${BUILDDIR}/${BOOTSTRAP} ]; then
+if [ ! -f ${BOOTSTRAP} ]; then
echo "Error: soong script must be located in a directory created by bootstrap.bash"
exit 1
fi
-source ${BUILDDIR}/.soong.bootstrap
+source ${BOOTSTRAP}
if [[ ${SRCDIR_IN:0:1} == '/' ]]; then
# SRCDIR_IN is an absolute path