commit | 05ce74a767f8b35b3a040940cc6b55680dd67545 | [log] [tgz] |
---|---|---|
author | Justin Paupore <jpaupore@google.com> | Tue Feb 02 06:03:15 2021 +0000 |
committer | Justin Paupore <jpaupore@google.com> | Tue Feb 02 06:06:34 2021 +0000 |
tree | 3b4377624a39cee80cfa77b095c9447242b62b96 | |
parent | d961322a9e1195bbefc3c3f95ed05bede63de3b4 [diff] |
bazel.sh: Use location of bazel.sh to locate TOP. The bazel.sh wrapper script uses the existence of a file to check if a given directory is TOP. Currently, it uses envsetup.sh. To allow for standalone builds where envsetup.sh is not present, this changes the script to use itself as the file to check for, since it is guaranteed to be present. Test: build/bazel/bazel.sh info Change-Id: I05944d8110aea130e2a1b105fb54df35cd8e9bff