mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
This reverts commit 3a98df0bdd.
Reason for revert:
Can't roll into skia and build_internal
Original change's description:
> depot_tools: Move six to depot_tools' .vpython
>
> Bug: 984182
> Change-Id: I34a242c8607624beb0f06a27c563e413dec99790
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1717492
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
> Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
> Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
> Reviewed-by: Michael Moss <mmoss@chromium.org>
TBR=iannucci@chromium.org,mmoss@chromium.org,tandrii@chromium.org,ehmaldonado@chromium.org
Change-Id: I51e502e6f7633a6f26898f1ecbcd86ccf9c7c123
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 984182
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1718996
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
24 lines
610 B
Bash
Executable File
24 lines
610 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
while test "$PWD" != "/"; do
|
|
if test -f "$PWD/src/.gitmodules"; then
|
|
break
|
|
fi
|
|
cd ..
|
|
done
|
|
if ! test -f "$PWD/src/.gitmodules"; then
|
|
echo "Could not find the root of your checkout; aborting." 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
gclient_spec="solutions=[{'name':'src','url':None,'deps_file':'.DEPS.git'}]"
|
|
kernel_name=$(uname -s)
|
|
if [ "${kernel_name:0:5}" = "MINGW" ]; then
|
|
dir="${0%\\*}"
|
|
cmd "/C ${dir}\\python.bat ${dir}\\gclient.py runhooks --spec=$gclient_spec"
|
|
else
|
|
dir="$(dirname $0)"
|
|
PYTHONDONTWRITEBYTECODE=1 exec python "$dir/gclient.py" runhooks --spec="$gclient_spec"
|
|
fi
|
|
exit $?
|