qgis/QGIS — pull request #1611 by manisandro (2014-10-05 11:52:12+00:00)
Title: Use readlink -f to determine source directory in scripts/prepare-commit.sh

This makes it possible to use prepare-commit.sh as a git pre-commit hook by just symlinking `prepare-commit.sh`:

cd .git/hooks
ln -s ../../scripts/prepare-commit.sh pre-commit

(Without readlink, `dirname $0` returns the `hooks` directory instead of the `scripts` directory).