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

Unified Diff: editor/tools/analyzer

Issue 628363002: Modify dartanalyzer scripts to look more like dart2js scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address code review comments and rebase Created 6 years, 2 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 | sdk/bin/dartanalyzer » ('j') | sdk/bin/dartanalyzer.bat » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/analyzer
diff --git a/editor/tools/analyzer b/editor/tools/analyzer
deleted file mode 100755
index 61ff6ba6ca32206531eac158471d0b7bf22ac0c1..0000000000000000000000000000000000000000
--- a/editor/tools/analyzer
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/bash
-# Copyright (c) 2013, 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.
-
-set -e
-
-CUR_DIR="$(cd "${BASH_SOURCE%/*}" ; pwd -P)"
-
-if [ -z "$DART_CONFIGURATION" ]; then
- DART_CONFIGURATION="ReleaseIA32"
-fi
-
-DART_ROOT="$(cd "${CUR_DIR}/../.." ; pwd -P)"
-SDK_DIR="$(cd "${DART_ROOT}/sdk" ; pwd -P)"
-PKG_ANALYZER="$DART_ROOT/pkg/analyzer/bin/analyzer.dart"
-
-if [[ `uname` == 'Darwin' ]]; then
- BUILD_DIR="$DART_ROOT/xcodebuild/$DART_CONFIGURATION"
-else
- BUILD_DIR="$DART_ROOT/out/$DART_CONFIGURATION"
-fi
-
-PACKAGE_ROOT="$BUILD_DIR/packages/"
-
-FOUND_SDK=0
-for ARG in "$@"
-do
- case $ARG in
- --dart-sdk)
- FOUND_SDK=1
- ;;
- *)
- ;;
- esac
-done
-
-if [ $FOUND_SDK = 0 ]; then
- exec "$BUILD_DIR/dart" \
- "--package-root=$PACKAGE_ROOT" \
- --heap_growth_rate=512 \
- --inlining_hotness=90 \
- --optimization_counter_threshold=5000 \
- "${PKG_ANALYZER}" \
- --dart-sdk "${SDK_DIR}" "$@"
-else
- exec "$BUILD_DIR/dart" \
- "--package-root=$PACKAGE_ROOT" \
- --heap_growth_rate=512 \
- --inlining_hotness=90 \
- --optimization_counter_threshold=5000 \
- "${PKG_ANALYZER}" "$@"
-fi
« no previous file with comments | « no previous file | sdk/bin/dartanalyzer » ('j') | sdk/bin/dartanalyzer.bat » ('J')

Powered by Google App Engine
This is Rietveld 408576698