summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2011-11-26 18:51:42 -0800
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 16:09:32 -0700
commit780fb5fc8f4bfbff888a7ab08dd517befd970e60 (patch)
tree40422f8f46ae8be722f6a0860930788718419de8 /envsetup.sh
parentae9f61b6717553eff9295ca93a959000306381ee (diff)
downloadbuild-780fb5fc8f4bfbff888a7ab08dd517befd970e60.zip
build-780fb5fc8f4bfbff888a7ab08dd517befd970e60.tar.gz
build-780fb5fc8f4bfbff888a7ab08dd517befd970e60.tar.bz2
roomservice delivers you lunch combos from the CyanogenMod github.
fix roomservice formatting support product names with _ in them fix roomservice to handle pagination Change-Id: I4923c2f768094dbad8e06a72d9f27d46414030ab
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/envsetup.sh b/envsetup.sh
index ae1e4c5..e1dd6ea 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -540,6 +540,15 @@ function lunch()
check_product $product
if [ $? -ne 0 ]
then
+ # if we can't find a product, try to grab it off the CM github
+ T=$(gettop)
+ pushd $T > /dev/null
+ build/tools/roomservice.py $product
+ popd > /dev/null
+ check_product $product
+ fi
+ if [ $? -ne 0 ]
+ then
echo
echo "** Don't have a product spec for: '$product'"
echo "** Do you have the right repo manifest?"