mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
This reverts commit d6186f9936.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> depot_tools: Run Python scripts using vpython (Part 1)
>
> Tbr: iannucci@chromium.org
> Bug: 984182
> Change-Id: If36722e190d305f89d63dce91d0a600ddc34ebe3
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1748589
> Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
TBR=iannucci@chromium.org,ehmaldonado@chromium.org
Change-Id: I7686985852608d0703bcbbab137df1ce82b29723
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 984182
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1749853
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 $?
|