# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -15,23 +15,174 @@ set -e
# See the License for the specific language governing permissions and
# limitations under the License.
#mounts the components of soong into a directory structure that Go tools and editors expect
# Mounts the components of soong into a directory structure that Go tools
# and editors expect.
#move to the script's directory
cd"$(dirname$0)"
SCRIPT_PATH="$PWD"
#find the root of the Repo checkout
cd"${SCRIPT_PATH}"/../../..
ANDROID_PATH="${PWD}"
OUTPUT_PATH="$(echo${GOPATH} | sed's/\:.*//')"#if GOPATH contains multiple paths, use the first one
if[-z"${OUTPUT_PATH}"];then
echo"Error; could not determine the desired location at which to create a Go-compatible workspace. Please update GOPATH to specify the desired destination directory"