File: arc

package info (click to toggle)
phabricator 0~git20160726-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 67,360 kB
  • ctags: 116,654
  • sloc: php: 489,176; sql: 14,913; ansic: 3,619; yacc: 2,484; sh: 727; lex: 488; makefile: 229; cpp: 221; python: 186; sed: 66; xml: 23
file content (21 lines) | stat: -rwxr-xr-x 584 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash

# NOTE: This file is a wrapper script instead of a symlink so it will work in
# the Git Bash environment in Windows.

# Do bash magic to resolve the real location of this script through aliases,
# symlinks, etc.
SOURCE="${BASH_SOURCE[0]}";
while [ -h "$SOURCE" ]; do
  LINK="$(readlink "$SOURCE")";
  if [ "${LINK:0:1}" == "/" ]; then
    # absolute symlink
    SOURCE="$LINK"
  else
    # relative symlink
    SOURCE="$(cd -P "$(dirname "$SOURCE")" && pwd)/$LINK"
  fi
done;
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"

exec "$DIR/../scripts/arcanist.php" "$@"