diff --git a/buildme b/buildme index ae55eb1bc..90ac81722 100755 --- a/buildme +++ b/buildme @@ -11,7 +11,7 @@ # $1 argument override MYTOOLCHAIN variable, in case you want GCC53 for example -cd "$(dirname $0)" +cd "$(dirname $([ -L $0 ] && readlink $0 || echo $0))" declare -r CLOVERROOT="$PWD" MYTOOLCHAIN=${1:-GCC53} @@ -28,7 +28,6 @@ if [[ ! $PATH =~ (^|:)$1(:|$) ]]; then fi } - checkXCODE() { echo "[CHECK XCODE]" if [[ ! -x /usr/bin/xcodebuild ]]; then