| 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
|
|
|