mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
Since 'python3' might not exist in Windows, this fixes the 'gn' script for msysgit users. Recipe-Manual-Change: infra Bug: None Change-Id: Ic5ed76963a7cf1819008470079256a6fd572fb0e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3103446 Reviewed-by: Dirk Pranke <dpranke@google.com> Commit-Queue: Dirk Pranke <dpranke@google.com> Auto-Submit: Jamie Madill <jmadill@chromium.org>
15 lines
410 B
Bash
Executable File
15 lines
410 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright 2013 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
base_dir=$(dirname "$0")
|
|
|
|
# In git bash on Windows, invoke the batch file.
|
|
if [ "$(expr "$(uname -s)" : "^MINGW64_NT")" == "10" ]; then
|
|
gn.bat "$@"
|
|
exit
|
|
fi
|
|
|
|
PYTHONDONTWRITEBYTECODE=1 exec python3 "$base_dir/gn.py" "$@"
|