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