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

Side by Side Diff: ninja

Issue 11366044: ninja: Don't assume that depot_tools is in PATH. (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2012 Google Inc. All rights reserved. 3 # Copyright (c) 2012 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 OS="$(uname -s)" 7 OS="$(uname -s)"
8 THIS_DIR="$(dirname "${0}")"
8 9
9 if [ "${OS}" = "Linux" ]; then 10 if [ "${OS}" = "Linux" ]; then
10 exec ninja-linux64 "$@" 11 exec "${THIS_DIR}/ninja-linux64" "$@"
11 elif [ "${OS}" = "Darwin" ]; then 12 elif [ "${OS}" = "Darwin" ]; then
12 exec ninja-mac "$@" 13 exec "${THIS_DIR}/ninja-mac" "$@"
13 elif [[ ${OS} == CYGWIN* ]]; then 14 elif [[ ${OS} == CYGWIN* ]]; then
14 exec cmd.exe /c `cygpath -t windows $0`.exe "$@" 15 exec cmd.exe /c `cygpath -t windows $0`.exe "$@"
15 elif [[ ${OS} == MINGW32* ]]; then 16 elif [[ ${OS} == MINGW32* ]]; then
16 cmd.exe //c $0.exe "$@" 17 cmd.exe //c $0.exe "$@"
17 else 18 else
18 echo "Unsupported OS ${OS}" 19 echo "Unsupported OS ${OS}"
19 exit 1 20 exit 1
20 fi 21 fi
21 22
OLDNEW
« 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