From eadd244c0fcd66194d485106ecb25a24a25f5908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 5 Feb 2010 09:41:37 +0000 Subject: [PATCH] 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 --- build/scripts/build_haiku_image | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build/scripts/build_haiku_image b/build/scripts/build_haiku_image index 3d320ca6c3..1caa798199 100755 --- a/build/scripts/build_haiku_image +++ b/build/scripts/build_haiku_image @@ -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