diff --git a/run.sh b/run.sh index d9abff4..770b10a 100755 --- a/run.sh +++ b/run.sh @@ -2,8 +2,14 @@ cd $(dirname $0) -SOURCE=$(readlink -f $(pwd)/android) -CCACHE=$(readlink -f $(pwd)/ccache) +if [[ $OSTYPE == "darwin"* ]]; then + SOURCE=$(stat -f %N $(pwd)/android) + CCACHE=$(stat -f %N $(pwd)/ccache) +else + SOURCE=$(readlink -f $(pwd)/android) + CCACHE=$(readlink -f $(pwd)/ccache) +fi + CONTAINER_HOME=/home/cmbuild CONTAINER=cyanogenmod REPOSITORY=stucki/cyanogenmod