diff --git a/envsetup.sh b/envsetup.sh index aff942f7d..045e46417 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -664,7 +664,7 @@ function mmm() for DIR in $DIRS ; do DIR=`echo $DIR | sed -e 's:/$::'` if [ -f $DIR/Android.mk ]; then - TO_CHOP=`echo $T | wc -c | tr -d ' '` + TO_CHOP=`(cd -P -- $T && pwd -P) | wc -c | tr -d ' '` TO_CHOP=`expr $TO_CHOP + 1` START=`PWD= /bin/pwd` MFILE=`echo $START | cut -c${TO_CHOP}-`