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
This commit is contained in:
Rashed Abdel-Tawab 2017-12-24 22:40:31 +02:00
parent 1cdd380e69
commit b52c70881d
No known key found for this signature in database
GPG key ID: 87867AAE006CB094

View file

@ -316,6 +316,10 @@ function cafremote()
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/"