diff options
author | Colin Cross | 2015-04-08 18:02:08 -0500 |
---|---|---|
committer | Colin Cross | 2015-04-08 19:13:44 -0500 |
commit | 10787d046d0cba050e6d44807fda75a09063efe1 (patch) | |
tree | 8029486c425a4ddda0ff714f8f7f3a40f2c31ba1 /soong.bash | |
parent | c0b06f191f99379d3e8111f3bb149a53b1054422 (diff) | |
download | platform-build-soong-10787d046d0cba050e6d44807fda75a09063efe1.tar.gz platform-build-soong-10787d046d0cba050e6d44807fda75a09063efe1.tar.xz platform-build-soong-10787d046d0cba050e6d44807fda75a09063efe1.zip |
Fix running soong from different directory
${BOOTSTRAP} already contains ${BUILDDIR}
Change-Id: Ie1303e4b2a5ce415f565ffc4b6125071e427bd43
Diffstat (limited to 'soong.bash')
-rwxr-xr-x | soong.bash | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,12 +8,12 @@ BOOTSTRAP=${BUILDDIR}/.soong.bootstrap | |||
8 | # The source directory path and operating system will get written to | 8 | # The source directory path and operating system will get written to |
9 | # .soong.bootstrap by the bootstrap script. | 9 | # .soong.bootstrap by the bootstrap script. |
10 | 10 | ||
11 | if [ ! -f ${BUILDDIR}/${BOOTSTRAP} ]; then | 11 | if [ ! -f ${BOOTSTRAP} ]; then |
12 | echo "Error: soong script must be located in a directory created by bootstrap.bash" | 12 | echo "Error: soong script must be located in a directory created by bootstrap.bash" |
13 | exit 1 | 13 | exit 1 |
14 | fi | 14 | fi |
15 | 15 | ||
16 | source ${BUILDDIR}/.soong.bootstrap | 16 | source ${BOOTSTRAP} |
17 | 17 | ||
18 | if [[ ${SRCDIR_IN:0:1} == '/' ]]; then | 18 | if [[ ${SRCDIR_IN:0:1} == '/' ]]; then |
19 | # SRCDIR_IN is an absolute path | 19 | # SRCDIR_IN is an absolute path |