Merge "envsetup.sh: Update text in lunch menu for clarity" am: 44adfa7f8c
am: 0b828a50c7
am: c838e15827
Original change: https://android-review.googlesource.com/c/platform/build/+/1974422 Change-Id: I6f2c3d6aa414773e6aa737800a886762801112cd
This commit is contained in:
commit
0bc5e16871
1 changed files with 11 additions and 2 deletions
13
envsetup.sh
13
envsetup.sh
|
@ -625,7 +625,7 @@ function print_lunch_menu()
|
|||
return
|
||||
fi
|
||||
|
||||
echo "Lunch menu... pick a combo:"
|
||||
echo "Lunch menu .. Here are the common combinations:"
|
||||
|
||||
local i=1
|
||||
local choice
|
||||
|
@ -647,12 +647,16 @@ function lunch()
|
|||
return 1
|
||||
fi
|
||||
|
||||
local used_lunch_menu=0
|
||||
|
||||
if [ "$1" ]; then
|
||||
answer=$1
|
||||
else
|
||||
print_lunch_menu
|
||||
echo -n "Which would you like? [aosp_arm-eng] "
|
||||
echo "Which would you like? [aosp_arm-eng]"
|
||||
echo -n "Pick from common choices above (e.g. 13) or specify your own (e.g. aosp_barbet-eng): "
|
||||
read answer
|
||||
used_lunch_menu=1
|
||||
fi
|
||||
|
||||
local selection=
|
||||
|
@ -717,6 +721,11 @@ function lunch()
|
|||
fi
|
||||
export TARGET_BUILD_TYPE=release
|
||||
|
||||
if [ $used_lunch_menu -eq 1 ]; then
|
||||
echo
|
||||
echo "Hint: next time you can simply run 'lunch $selection'"
|
||||
fi
|
||||
|
||||
[[ -n "${ANDROID_QUIET_BUILD:-}" ]] || echo
|
||||
|
||||
set_stuff_for_environment
|
||||
|
|
Loading…
Reference in a new issue