From 990668042aa9d3b714b7559a10f0b1690bf5fed5 Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Mon, 31 Jan 2011 00:49:49 +0000 Subject: Add a CM-specific breakfast menu We usually don't wan't all the devices in the lunch menu, so we can now choose to pick up breakfast or brunch and get a smaller selection of devices (i.e., those we support) Change-Id: Ia9e7ec8e1f429e2a9811f13cc126a66a04428f34 --- envsetup.sh | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/envsetup.sh b/envsetup.sh index 98656b4..8f8a883 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -446,8 +446,15 @@ function print_lunch_menu() local uname=$(uname) echo echo "You're building on" $uname + if [ "$(uname)" = "Darwin" ] ; then + echo " (ohai, koush!)" + fi echo - echo "Lunch menu... pick a combo:" + if [ "z${CM_DEVICES_ONLY}" != "z" ]; then + echo "Breakfast menu... pick a combo:" + else + echo "Lunch menu... pick a combo:" + fi local i=1 local choice @@ -457,9 +464,32 @@ function print_lunch_menu() i=$(($i+1)) done + if [ "z${CM_DEVICES_ONLY}" != "z" ]; then + echo "... and don't forget the bacon!" + fi + echo } +function brunch() +{ + breakfast +} + +function breakfast() +{ + CM_DEVICES_ONLY="true" + unset LUNCH_MENU_CHOICES + add_lunch_combo full-eng + for f in `/bin/ls vendor/cyanogen/vendorsetup.sh vendor/cyanogen/build/vendorsetup.sh 2> /dev/null` + do + echo "including $f" + . $f + done + unset f + lunch +} + function lunch() { local answer @@ -1190,7 +1220,6 @@ else fi unset _xarray -# Execute the contents of any vendorsetup.sh files we can find. for f in `/bin/ls vendor/*/vendorsetup.sh vendor/*/build/vendorsetup.sh device/*/*/vendorsetup.sh 2> /dev/null` do echo "including $f" -- cgit v1.1