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

Unified Diff: third_party/pkg/angular/analyze.sh

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 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
Index: third_party/pkg/angular/analyze.sh
diff --git a/third_party/pkg/angular/analyze.sh b/third_party/pkg/angular/analyze.sh
new file mode 100755
index 0000000000000000000000000000000000000000..46bbe351f1fc9a9b1df71a517500e45719dffdcb
--- /dev/null
+++ b/third_party/pkg/angular/analyze.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+DART_ANALYSER_BIN=`which dartanalyzer`
+
+# OS-specific Dartium path defaults
+if [ -z $DART_ANALYSER_BIN ]; then
+ case $( uname -s ) in
+ Darwin)
+ DART_ANALYSER_BIN=/Applications/dart/dart-sdk/bin/dartanalyzer
+ ;;
+ Linux)
+ DART_ANALYSER_BIN=/opt/dart-sdk/bin/dartanalyzer
+ esac
+fi
+
+OUT=tmp/all.dart
+mkdir -p tmp
+
+$DART_ANALYSER_BIN --version
+
+echo // generated file > $OUT
+
+for FILE in $(ls lib/angular.dart perf/*_perf.dart test/*_spec.dart test/*/*_spec.dart)
+do
+ echo export \'../$FILE\' hide main, NestedRouteInitializer\; >> $OUT
+done
+
+./generate.sh && $DART_ANALYSER_BIN $OUT

Powered by Google App Engine
This is Rietveld 408576698