summaryrefslogtreecommitdiffstats
path: root/webkit/tools/merge/merge.sh
blob: c0e6a30a27175e9310a3523b7192463340815158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

exec_dir=$(dirname $0)

if [ "$OSTYPE" = "cygwin" ]; then
  system_root=`cygpath "$SYSTEMROOT"`
  PATH="/usr/bin:$system_root/system32:$system_root:$system_root/system32/WBEM:$PATH"
  export PATH
  PYTHON_PROG="$exec_dir/../../../third_party/python_24/python.exe"
else
  PYTHON_PROG=python
  # When not using the included python, we don't get automatic site.py paths.
  # Specifically, run_webkit_tests needs the paths in:
  # third_party/python_24/Lib/site-packages/google.pth
  PYTHONPATH="$(readlink -f ${exec_dir}/../../../tools/python):$PYTHONPATH"
  export PYTHONPATH
fi

"$PYTHON_PROG" "$exec_dir/merge.py" "$@"