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
1 file changed
tree: 3b4377624a39cee80cfa77b095c9447242b62b96
  1. docs/
  2. examples/
  3. rules/
  4. scripts/
  5. bazel.BUILD
  6. bazel.sh
  7. bazel.WORKSPACE
  8. common.bazelrc
  9. darwin.bazelrc
  10. linux.bazelrc
  11. OWNERS
  12. README.md
README.md

Bazel

The code in this directory is experimental. Bazel support for Android Platform is undergoing active development and workflow stability is currently not guaranteed.