summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-11-16 03:48:30 -0800
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 16:28:37 -0700
commite917827bfbe881dd2eb957e070b353e3c1c91723 (patch)
treea41b718ca1000e1f54421870fb1837c8b1a7390e /envsetup.sh
parent20c21d24f8aec25f7c99067fdb8c1731600b7011 (diff)
downloadbuild-e917827bfbe881dd2eb957e070b353e3c1c91723.zip
build-e917827bfbe881dd2eb957e070b353e3c1c91723.tar.gz
build-e917827bfbe881dd2eb957e070b353e3c1c91723.tar.bz2
envsetup: Fix remote functions to deal with symlinks
Change-Id: I6f35dc30dda22149b2c37e1c6c7d41ea7239d3bb
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/envsetup.sh b/envsetup.sh
index 25c2a3e..084518d 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1594,7 +1594,7 @@ function aospremote()
then
echo .git directory not found. Please run this from the root directory of the Android repository you wish to set up.
fi
- PROJECT=`pwd | sed s#$ANDROID_BUILD_TOP/##g`
+ PROJECT=`pwd -P | sed s#$ANDROID_BUILD_TOP/##g`
if (echo $PROJECT | grep -qv "^device")
then
PFX="platform/"
@@ -1611,7 +1611,7 @@ function cafremote()
then
echo .git directory not found. Please run this from the root directory of the Android repository you wish to set up.
fi
- PROJECT=`pwd | sed s#$ANDROID_BUILD_TOP/##g`
+ PROJECT=`pwd -P | sed s#$ANDROID_BUILD_TOP/##g`
if (echo $PROJECT | grep -qv "^device")
then
PFX="platform/"