Make mmm handle symbolic links.

Use the PWD= /bin/pwd trick used in getopt in mmm so that it can deal with a symlinked
root directory.

Change-Id: Ia8b5ef10cbd10ca05f2301db86f64fdf11ff2840
This commit is contained in:
Gilles Debunne 2010-02-17 15:56:45 -08:00
parent 4f71b8f449
commit 8a20f580a8
1 changed files with 2 additions and 1 deletions

View File

@ -625,7 +625,8 @@ function mmm()
if [ -f $DIR/Android.mk ]; then
TO_CHOP=`echo $T | wc -c | tr -d ' '`
TO_CHOP=`expr $TO_CHOP + 1`
MFILE=`echo $PWD | cut -c${TO_CHOP}-`
START=`PWD= /bin/pwd`
MFILE=`echo $START | cut -c${TO_CHOP}-`
if [ "$MFILE" = "" ] ; then
MFILE=$DIR/Android.mk
else