| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 set -e | 2 set -e |
| 3 | 3 |
| 4 if [ -n "$DART_SDK" ]; then | 4 if [ -n "$DART_SDK" ]; then |
| 5 DARTSDK=$DART_SDK | 5 DARTSDK=$DART_SDK |
| 6 else | 6 else |
| 7 echo "sdk=== $DARTSDK" | 7 echo "sdk=== $DARTSDK" |
| 8 DART=`which dart|cat` # pipe to cat to ignore the exit code | 8 DART=`which dart|cat` # pipe to cat to ignore the exit code |
| 9 DARTSDK=`which dart | sed -e 's/\/dart\-sdk\/.*$/\/dart-sdk/'` | 9 DARTSDK=`which dart | sed -e 's/\/dart\-sdk\/.*$/\/dart-sdk/'` |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 export DART=${DART:-"$DARTSDK/bin/dart"} | 28 export DART=${DART:-"$DARTSDK/bin/dart"} |
| 29 export PUB=${PUB:-"$DARTSDK/bin/pub"} | 29 export PUB=${PUB:-"$DARTSDK/bin/pub"} |
| 30 export DARTANALYZER=${DARTANALYZER:-"$DARTSDK/bin/dartanalyzer"} | 30 export DARTANALYZER=${DARTANALYZER:-"$DARTSDK/bin/dartanalyzer"} |
| 31 export DARTDOC=${DARTDOC:-"$DARTSDK/bin/dartdoc"} | 31 export DARTDOC=${DARTDOC:-"$DARTSDK/bin/dartdoc"} |
| 32 export DART_DOCGEN=${DART_DOCGEN:-"$DARTSDK/bin/docgen"} | 32 export DART_DOCGEN=${DART_DOCGEN:-"$DARTSDK/bin/docgen"} |
| 33 | 33 |
| 34 export CHROME_CANARY_BIN=${CHROME_CANARY_BIN:-"$DARTIUM"} | 34 export CHROME_CANARY_BIN=${CHROME_CANARY_BIN:-"$DARTIUM"} |
| 35 export CHROME_BIN=${CHROME_BIN:-"google-chrome"} | 35 export CHROME_BIN=${CHROME_BIN:-"google-chrome"} |
| 36 export DART_FLAGS='--enable_type_checks --enable_asserts' | 36 export DART_FLAGS='--enable_type_checks --enable_asserts' |
| 37 export PATH=$PATH:$DARTSDK/bin | 37 export PATH=$PATH:$DARTSDK/bin |
| OLD | NEW |