From df0fcd609b637a9a60d93bb575fbe61d8e208b97 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Sat, 14 Jan 2012 01:37:46 +0000 Subject: [PATCH] ninja depot_tools script: Call ninja-mac on mac. Review URL: http://codereview.chromium.org/9214014 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@117754 0039d316-1c4b-4281-b951-d872f2087c98 --- ninja | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ninja b/ninja index aeda2f08c..836ea4b65 100755 --- a/ninja +++ b/ninja @@ -1,3 +1,13 @@ -#!/bin/sh +#!/bin/bash + +OS="$(uname -s)" + +if [ "${OS}" = "Linux" ]; then + exec ninja-linux64 "$@" +elif [ "${OS}" = "Darwin" ]; then + exec ninja-mac "$@" +else + echo "Unsupported OS ${OS}" + exit 1 +fi -exec ninja-linux64 "$@"