summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2011-01-31 00:49:49 +0000
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2011-02-01 14:59:08 +0000
commit990668042aa9d3b714b7559a10f0b1690bf5fed5 (patch)
treeee345bc8832ee9b53694e61efd018e123199d595
parentcb5b0d68f1753384b442957b1370d46839443284 (diff)
downloadreplicant_build-990668042aa9d3b714b7559a10f0b1690bf5fed5.zip
replicant_build-990668042aa9d3b714b7559a10f0b1690bf5fed5.tar.gz
replicant_build-990668042aa9d3b714b7559a10f0b1690bf5fed5.tar.bz2
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
-rw-r--r--envsetup.sh33
1 files 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"