| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 set -e | 3 set -e |
| 4 | 4 |
| 5 (cd demo/todo; pub get) | 5 . $(dirname $0)/env.sh |
| 6 |
| 7 (cd $NGDART_BASE_DIR/example; pub get) |
| 8 |
| 9 rm -rf xxx.dart |
| 6 | 10 |
| 7 OUT=$(mktemp XXX.dart) | 11 OUT=$(mktemp XXX.dart) |
| 8 | 12 |
| 9 dart bin/expression_extractor.dart demo/todo/main.dart demo/todo /dev/null /dev/
null $OUT | 13 $DART --package-root=example/packages bin/expression_extractor.dart \ |
| 14 example/web/todo.dart example /dev/null /dev/null $OUT |
| 10 | 15 |
| 11 if [[ -e $OUT ]]; then | 16 if [[ -e $OUT ]]; then |
| 12 echo "Expression extractor created an output file" | 17 echo "Expression extractor created an output file" |
| 13 rm $OUT | 18 rm -rf $OUT |
| 14 exit; | 19 exit; |
| 15 fi; | 20 fi; |
| 16 | 21 |
| 17 # The file did not exist, exit with error. | 22 # The file did not exist, exit with error. |
| 18 exit 1 | 23 exit 1 |
| OLD | NEW |