Fallback to greadlink (for OSX) (it must be installed with macports).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35413 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2010-02-05 09:41:37 +00:00
parent 29bbb0ca9f
commit eadd244c0f

View File

@ -34,11 +34,14 @@ fi
# If the haiku image path is a symlink resolve it now (makebootable needs the
# path of the actual device path under Linux).
normalizedImagePath=''
if readlink -f "$imagePath" > /dev/null 2>&1 ; then
normalizedImagePath=$(readlink -f "$imagePath")
if [ "$normalizedImagePath" ]; then
imagePath="$normalizedImagePath"
fi
elif greadlink -f "$imagePath" > /dev/null 2>&1 ; then
normalizedImagePath=$(greadlink -f "$imagePath")
fi
if [ -n "$normalizedImagePath" ]; then
imagePath="$normalizedImagePath"
fi
# this adds the build library dir to LD_LIBRARY_PATH