Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Unified Diff: ninja

Issue 10024045: Add support for launching windows ninja from cygwin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ninja
===================================================================
--- ninja (revision 131809)
+++ ninja (working copy)
@@ -1,11 +1,17 @@
#!/bin/bash
+# Copyright (c) 2012 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
OS="$(uname -s)"
if [ "${OS}" = "Linux" ]; then
exec ninja-linux64 "$@"
elif [ "${OS}" = "Darwin" ]; then
exec ninja-mac "$@"
+elif [[ ${OS} == CYGWIN* ]]; then
+ exec cmd.exe /c `cygpath -t windows $0`.bat "$@"
else
echo "Unsupported OS ${OS}"
exit 1
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698