2012-03-22 02:04:35 +01:00
|
|
|
#!/bin/bash
|
2012-03-20 03:23:41 +01:00
|
|
|
|
|
|
|
# NOTE: This file is a wrapper script instead of a symlink so it will work in
|
|
|
|
# the Git Bash environment in Windows.
|
|
|
|
|
2012-03-22 02:04:35 +01:00
|
|
|
# Do bash magic to resolve the real location of this script through aliases,
|
|
|
|
# symlinks, etc.
|
|
|
|
SOURCE="${BASH_SOURCE[0]}";
|
|
|
|
while [ -h "$SOURCE" ]; do
|
2012-03-30 23:56:19 +02:00
|
|
|
LINK="$(readlink "$SOURCE")";
|
|
|
|
if [ "${LINK:0:1}" == "/" ]; then
|
|
|
|
# absolute symlink
|
|
|
|
SOURCE="$LINK"
|
|
|
|
else
|
|
|
|
# relative symlink
|
|
|
|
SOURCE="$(cd -P "$(dirname "$SOURCE")" && pwd)/$LINK"
|
|
|
|
fi
|
2012-03-22 02:04:35 +01:00
|
|
|
done;
|
|
|
|
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
|
|
|
|
|
2012-03-31 05:28:02 +02:00
|
|
|
exec $DIR/../scripts/arcanist.php "$@"
|