OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
| 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 |
| 5 # found in the LICENSE file. |
| 6 |
3 OS="$(uname -s)" | 7 OS="$(uname -s)" |
4 | 8 |
5 if [ "${OS}" = "Linux" ]; then | 9 if [ "${OS}" = "Linux" ]; then |
6 exec ninja-linux64 "$@" | 10 exec ninja-linux64 "$@" |
7 elif [ "${OS}" = "Darwin" ]; then | 11 elif [ "${OS}" = "Darwin" ]; then |
8 exec ninja-mac "$@" | 12 exec ninja-mac "$@" |
| 13 elif [[ ${OS} == CYGWIN* ]]; then |
| 14 exec cmd.exe /c `cygpath -t windows $0`.bat "$@" |
9 else | 15 else |
10 echo "Unsupported OS ${OS}" | 16 echo "Unsupported OS ${OS}" |
11 exit 1 | 17 exit 1 |
12 fi | 18 fi |
13 | 19 |
OLD | NEW |