Merge "Update paths to orchestrator scripts" am: 4f4b3faa84 am: c491df4b2d

Original change: https://android-review.googlesource.com/c/platform/build/+/2221410

Change-Id: Iff9da19954f0586474e5ab2a5eef34862b2a7e40
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Spandan Das
2022-09-27 23:05:13 +00:00
committed by Automerger Merge Worker

View File

@@ -463,7 +463,7 @@ function multitree_lunch()
# message, instead of FileNotFound.
local T=$(multitree_gettop)
if [ -n "$T" ]; then
"$T/build/build/make/orchestrator/core/orchestrator.py" "$@"
"$T/orchestrator/build/orchestrator/core/orchestrator.py" "$@"
else
_multitree_lunch_error
return 1
@@ -471,7 +471,7 @@ function multitree_lunch()
if $(echo "$1" | grep -q '^-') ; then
# Calls starting with a -- argument are passed directly and the function
# returns with the lunch.py exit code.
"${T}/build/build/make/orchestrator/core/lunch.py" "$@"
"${T}/orchestrator/build/orchestrator/core/lunch.py" "$@"
code=$?
if [[ $code -eq 2 ]] ; then
echo 1>&2
@@ -482,7 +482,7 @@ function multitree_lunch()
fi
else
# All other calls go through the --lunch variant of lunch.py
results=($(${T}/build/build/make/orchestrator/core/lunch.py --lunch "$@"))
results=($(${T}/orchestrator/build/orchestrator/core/lunch.py --lunch "$@"))
code=$?
if [[ $code -eq 2 ]] ; then
echo 1>&2
@@ -978,7 +978,7 @@ function gettop
# TODO: Merge into gettop as part of launching multitree
function multitree_gettop
{
local TOPFILE=build/build/make/core/envsetup.mk
local TOPFILE=orchestrator/build/make/core/envsetup.mk
if [ -n "$TOP" -a -f "$TOP/$TOPFILE" ] ; then
# The following circumlocution ensures we remove symlinks from TOP.
(cd "$TOP"; PWD= /bin/pwd)
@@ -1933,7 +1933,7 @@ function multitree_build()
{
local T=$(multitree_gettop)
if [ -n "$T" ]; then
"$T/build/build/make/orchestrator/core/orchestrator.py" "$@"
"$T/orchestrator/build/orchestrator/core/orchestrator.py" "$@"
else
_multitree_lunch_error
return 1