mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
This reverts commit 0e8b3107e0.
Reason for revert: wrappers aren't being created in python2-bin, other disruptions
Original change's description:
> Remove py batch wrappers from root dir
>
> This removes python.bat and python3.bat batch wrappers from root of this
> repository. This change brings Windows set up closer to unix.
>
> depot_tools provides batch wrappers in python-bin and python2-bin
> directories and user can opt in to use it by adding them to PATH.
>
> Bug: 777069
> Change-Id: Ie7571a49f940e7a69b6c18779499c39aee94d06a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2742181
> Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
> Reviewed-by: Dirk Pranke <dpranke@google.com>
> Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Bug: 777069
Change-Id: Ieaadb032249fa5d6eea39668355c0c7de06dfbeb
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2747702
Auto-Submit: Dirk Pranke <dpranke@google.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
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 $?
|