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

Unified Diff: sdk/bin/dartfmt_sdk

Issue 950483002: Switch dartfmt in the SDK to run dart_style. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix copy/paste error. Created 5 years, 10 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 | « sdk/bin/dartfmt.bat ('k') | sdk/bin/dartfmt_sdk.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/bin/dartfmt_sdk
diff --git a/sdk/bin/dartanalyzer_sdk b/sdk/bin/dartfmt_sdk
similarity index 69%
copy from sdk/bin/dartanalyzer_sdk
copy to sdk/bin/dartfmt_sdk
index cc49a5c8293165d323178d90213af08683af46d2..0a9cbefcb3a6320961b4b044a8683e916533bd45 100755
--- a/sdk/bin/dartanalyzer_sdk
+++ b/sdk/bin/dartfmt_sdk
@@ -1,10 +1,10 @@
#!/bin/bash
-# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+# Copyright (c) 2015, 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.
-# Run dartanalyzer.dart on the Dart VM. This script assumes the Dart SDK's
-# directory structure.
+# Run dart_style/bin/format.dart on the Dart VM. This script assumes the Dart
+# SDK's directory structure.
function follow_links() {
file="$1"
@@ -22,10 +22,8 @@ PROG_NAME="$(follow_links "$BASH_SOURCE")"
BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)"
SDK_DIR="$(cd "${BIN_DIR}/.." ; pwd -P)"
-SDK_ARG="--dart-sdk=$SDK_DIR"
-
-SNAPSHOT="$BIN_DIR/snapshots/dartanalyzer.dart.snapshot"
+SNAPSHOT="$BIN_DIR/snapshots/dartfmt.dart.snapshot"
# We are running the snapshot in the built SDK.
DART="$BIN_DIR/dart"
-exec "$DART" "$SNAPSHOT" "$SDK_ARG" "$@"
+exec "$DART" "$SNAPSHOT" "$@"
« no previous file with comments | « sdk/bin/dartfmt.bat ('k') | sdk/bin/dartfmt_sdk.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698