blob: 2686e3ec1671e3c0d05cec9039f60a4107cf9136 [file] [log] [blame]
r.c.ladan@gmail.comec238db2014-06-02 20:39:42 +00001#!/usr/bin/env bash
szager@google.com518597c2012-11-01 05:03:08 +00002
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'}]"
szager@chromium.orgdf31e612013-03-19 20:38:10 +000015kernel_name=$(uname -s)
16if [ "${kernel_name:0:5}" = "MINGW" ]; then
17 dir="${0%\\*}"
Edward Lemurd6186f92019-08-12 17:56:58 +000018 ${dir}\\vpython "${dir}\\gclient.py" "runhooks" "--spec=$gclient_spec"
szager@chromium.orgdf31e612013-03-19 20:38:10 +000019else
20 dir="$(dirname $0)"
Edward Lemurd6186f92019-08-12 17:56:58 +000021 PYTHONDONTWRITEBYTECODE=1 exec $dir/vpython "$dir/gclient.py" runhooks --spec="$gclient_spec"
szager@chromium.orgdf31e612013-03-19 20:38:10 +000022fi
szager@google.com518597c2012-11-01 05:03:08 +000023exit $?