| OLD | NEW |
| (Empty) | |
| 1 #!/bin/sh |
| 2 set -e |
| 3 DART=`which dart|cat` # pipe to cat to ignore the exit code |
| 4 export DARTSDK=`which dart | sed -e 's/\/dart\-sdk\/.*$/\/dart-sdk/'` |
| 5 if [ "$DARTSDK" = "/Applications/dart/dart-sdk" ]; then |
| 6 # Assume we are a mac machine with standard dart setup |
| 7 export DARTIUM="/Applications/dart/chromium/Chromium.app/Contents/MacOS/Chro
mium" |
| 8 else |
| 9 export DARTSDK="`pwd`/dart-sdk" |
| 10 case $( uname -s ) in |
| 11 Darwin) |
| 12 export DARTIUM=${DARTIUM:-./dartium/Chromium.app/Contents/MacOS/Chromium
} |
| 13 ;; |
| 14 Linux) |
| 15 export DARTIUM=${DARTIUM:-./dartium/chrome} |
| 16 ;; |
| 17 esac |
| 18 fi |
| 19 export DART=${DART:-"$DARTSDK/bin/dart"} |
| 20 export PUB=${PUB:-"$DARTSDK/bin/pub"} |
| 21 export DARTANALYZER=${DARTANALYZER:-"$DARTSDK/bin/dartanalyzer"} |
| 22 export DARTDOC=${DARTDOC:-"$DARTSDK/bin/dartdoc"} |
| 23 |
| 24 |
| 25 export CHROME_CANARY_BIN=${CHROME_CANARY_BIN:-"$DARTIUM"} |
| 26 export CHROME_BIN=${CHROME_BIN:-"google-chrome"} |
| 27 export DART_FLAGS='--enable_type_checks --enable_asserts' |
| 28 export PATH=$PATH:$DARTSDK/bin |
| OLD | NEW |