Support Ninja being invoked from MinGW shells

BUG=none
TEST=it works

Review URL: https://chromiumcodereview.appspot.com/10310053

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@135873 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
rsleevi@chromium.org
2012-05-08 18:07:50 +00:00
parent 82c8c210c3
commit 8aeb18fb3e

2
ninja
View File

@@ -12,6 +12,8 @@ elif [ "${OS}" = "Darwin" ]; then
exec ninja-mac "$@"
elif [[ ${OS} == CYGWIN* ]]; then
exec cmd.exe /c `cygpath -t windows $0`.bat "$@"
elif [[ ${OS} == MINGW32* ]]; then
cmd.exe //c $0.bat "$@"
else
echo "Unsupported OS ${OS}"
exit 1