diff options
author | Will Burr <wgb@google.com> | 2022-02-07 12:12:01 +0000 |
---|---|---|
committer | Will Burr <wgb@google.com> | 2022-02-09 15:25:17 +0000 |
commit | 404012020f5ca974101a57e1a1a7528b4b697fae (patch) | |
tree | 3aa5b929172d1a726323d3713519b69eaf743202 | |
parent | 6daac9c78ddbd516abe551029edcaeda3fab90a0 (diff) | |
download | build-404012020f5ca974101a57e1a1a7528b4b697fae.tar.gz |
envsetup.sh: Update text in lunch menu for clarity
Updates the lunch menu text to make it clearer that the choices in lunch
menu are not fully comprehensive. As the list comes from common lunch
choices the text now refers to 'common combinations' and informs that
you can 'specify your own'. This should help developers who are unsure
why they cannot find their desired lunch target in the list.
Change-Id: Ib9d55ee46b7037c30a8f4b43fdd552ea66e887e8
Test: source build/envsetup.sh && lunch
-rw-r--r-- | envsetup.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/envsetup.sh b/envsetup.sh index a23bbad9c0..87e6e0ac54 100644 --- a/envsetup.sh +++ b/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 |