mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:57:43 +00:00
33478d857f
Don't use arithmetic comparison on strings! Review URL: https://codereview.chromium.org//11348265 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15430 260f80e4-7a28-3924-810f-c04153c831b5
23 lines
676 B
Bash
Executable file
23 lines
676 B
Bash
Executable file
#!/bin/bash
|
|
# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
# Setting CUR_DIR this way is ugly, but is needed to handle the case where
|
|
# sdk/bin has been symlinked to. On MacOS, readlink doesn't work with this case.
|
|
CUR_DIR="$(cd "${0%/*}" ; pwd -P)"
|
|
|
|
if [ -z "$DART_CONFIGURATION" ];
|
|
then
|
|
DART_CONFIGURATION="ReleaseIA32"
|
|
fi
|
|
|
|
if [[ `uname` == 'Darwin' ]];
|
|
then
|
|
BIN_DIR="$CUR_DIR"/../../xcodebuild/$DART_CONFIGURATION
|
|
else
|
|
BIN_DIR="$CUR_DIR"/../../out/$DART_CONFIGURATION
|
|
fi
|
|
|
|
exec "$BIN_DIR"/dart "$@"
|