OLD | NEW |
| (Empty) |
1 #!/bin/sh | |
2 set -e | |
3 | |
4 if [ -n "$DART_SDK" ]; then | |
5 DARTSDK=$DART_SDK | |
6 else | |
7 echo "sdk=== $DARTSDK" | |
8 DART=`which dart|cat` # pipe to cat to ignore the exit code | |
9 DARTSDK=`which dart | sed -e 's/\/bin\/dart$/\//'` | |
10 if [ -z "$DARTSDK" ]; then | |
11 DARTSDK="`pwd`/dart-sdk" | |
12 fi | |
13 fi | |
14 | |
15 export DART_SDK="$DARTSDK" | |
16 export DART=${DART:-"$DARTSDK/bin/dart"} | |
17 export PUB=${PUB:-"$DARTSDK/bin/pub"} | |
18 export DARTANALYZER=${DARTANALYZER:-"$DARTSDK/bin/dartanalyzer"} | |
19 export DARTDOC=${DARTDOC:-"$DARTSDK/bin/dartdoc"} | |
20 | |
21 | |
22 export DART_FLAGS='--enable_type_checks --enable_asserts' | |
23 export PATH=$PATH:$DARTSDK/bin | |
OLD | NEW |