Better tooling
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299614 0039d316-1c4b-4281-b951-d872f2087c98changes/60/343160/1
parent
10379b88cb
commit
eed06d620f
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
export EDITOR=${EDITOR:=notepad}
|
||||
WIN_BASE=`dirname $0`
|
||||
UNIX_BASE=`cygpath "$WIN_BASE"`
|
||||
export PATH=$PATH:$UNIX_BASE/SVN_BIN_DIR:$UNIX_BASE/PYTHON_BIN_DIR:$UNIX_BASE/PYTHON_BIN_DIR/Scripts
|
||||
export PYTHON_DIRECT=1
|
||||
export PYTHONUNBUFFERED=1
|
||||
if [[ $# > 1 ]]; then
|
||||
$UNIX_BASE/GIT_BIN_DIR/bin/bash.exe "$@"
|
||||
else
|
||||
$UNIX_BASE/GIT_BIN_DIR/git-bash.exe &
|
||||
fi
|
@ -1,11 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2014 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.
|
||||
|
||||
# This apparently useless file enables windows users to get access to
|
||||
# depot_tools' built-in bash.exe. When git executes this file as in `git bash`,
|
||||
# it has bash and related tools pre-installed in the environment. Therefore even
|
||||
# though 'bash' from cmd.exe doesn't work, bash here does work as you'd expect.
|
||||
|
||||
bash "$@"
|
Loading…
Reference in New Issue