blob: 5bb503e511ff8b5d5cff663b65e24e03af766c4e [file] [log] [blame]
[email protected]ec238db2014-06-02 20:39:421#!/usr/bin/env bash
[email protected]518597c2012-11-01 05:03:082
3while test "$PWD" != "/"; do
4 if test -f "$PWD/src/.gitmodules"; then
5 break
6 fi
7 cd ..
8done
9if ! test -f "$PWD/src/.gitmodules"; then
10 echo "Could not find the root of your checkout; aborting." 1>&2
11 exit 1
12fi
13
14gclient_spec="solutions=[{'name':'src','url':None,'deps_file':'.DEPS.git'}]"
[email protected]df31e612013-03-19 20:38:1015kernel_name=$(uname -s)
16if [ "${kernel_name:0:5}" = "MINGW" ]; then
17 dir="${0%\\*}"
18 cmd "/C ${dir}\\python.bat ${dir}\\gclient.py runhooks --spec=$gclient_spec"
19else
20 dir="$(dirname $0)"
21 PYTHONDONTWRITEBYTECODE=1 exec python "$dir/gclient.py" runhooks --spec="$gclient_spec"
22fi
[email protected]518597c2012-11-01 05:03:0823exit $?