2012-07-03 06:34:11 -07:00
|
|
|
#!/usr/bin/env bash
|
2012-03-19 19:23:41 -07: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-21 18:04:35 -07: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 14:56:19 -07: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-21 18:04:35 -07:00
|
|
|
done;
|
|
|
|
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
|
|
|
|
|
2013-03-06 14:43:18 -08:00
|
|
|
exec "$DIR/../scripts/arcanist.php" "$@"
|