envsetup: Automatically replace qcom/opensource with qcom-opensource
CAF doesn't use qcom/opensource in their paths, so automatically adjust
the project path for this when using cafremote
Change-Id: I6252fbd1c3e8a545c0d54eefb6b730b893821574
diff --git a/build/envsetup.sh b/build/envsetup.sh
index a418d21..b0c70ad 100644
--- a/build/envsetup.sh
+++ b/build/envsetup.sh
@@ -316,6 +316,10 @@
then
PROJECT="build"
fi
+ if [[ $PROJECT =~ "qcom/opensource" ]];
+ then
+ PROJECT=$(echo $PROJECT | sed -e "s#qcom\/opensource#qcom-opensource#")
+ fi
if (echo $PROJECT | grep -qv "^device")
then
local PFX="platform/"