am 6082332e: am dc04cc89: am 0706e6a4: Merge change I485df382 into eclair

Merge commit '6082332e4edc66d6e41856969ac8d1c534928541'

* commit '6082332e4edc66d6e41856969ac8d1c534928541':
  Tweak gettop() -- used in defining ANDROID_BUILD_TOP -- to expand symlinks.
This commit is contained in:
Dan Bornstein 2009-12-04 04:30:57 -08:00 committed by Android Git Automerger
commit 4dc97dcb7d
1 changed files with 5 additions and 2 deletions

View File

@ -537,7 +537,10 @@ function gettop
echo $TOP
else
if [ -f $TOPFILE ] ; then
echo $PWD
# The following circumlocution (repeated below as well) ensures
# that we record the true directory name and not one that is
# faked up with symlink names.
PWD= /bin/pwd
else
# We redirect cd to /dev/null in case it's aliased to
# a command that prints something as a side-effect
@ -546,7 +549,7 @@ function gettop
T=
while [ \( ! \( -f $TOPFILE \) \) -a \( $PWD != "/" \) ]; do
cd .. > /dev/null
T=$PWD
T=`PWD= /bin/pwd`
done
cd $HERE > /dev/null
if [ -f "$T/$TOPFILE" ]; then