Better MY_PATH evaluation in ensure_mkspecs.sh

This commit is contained in:
Yury Melnichek 2011-03-10 23:57:56 +01:00 committed by Alex Zolotarev
parent ee406ece0c
commit fac83110e2

View file

@ -1,3 +1,4 @@
MY_PATH=`echo $0 | grep -o '.*/'`
#!/bin/bash
MY_PATH=`dirname $(stat -f %N $PWD"/"$0)`
sudo ln -sf $MY_PATH/../mkspecs/iphone* /usr/local/Qt4.7/mkspecs/
sudo ln -sf $MY_PATH/../mkspecs/common/iphone-* /usr/local/Qt4.7/mkspecs/common/