Mac doesn't have readlink -f the way linux seems to

This commit is contained in:
Tom Willemsen 2010-12-06 12:51:18 +01:00
parent 2527e1a0d1
commit 433fb1da50

View file

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
INSTALL_BASEFILE=`readlink -f $0` INSTALL_BASEFILE=`readlink -f $0`
if [ -z $INSTALL_BASEFILE ]; then
INSTALL_BASEFILE="$PWD/$0"
fi
INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE` INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE`
CMD="ln -sfn" CMD="ln -sfn"