| OLD | NEW |
| (Empty) |
| 1 #!/bin/bash | |
| 2 # | |
| 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 4 # for details. All rights reserved. Use of this source code is governed by a | |
| 5 # BSD-style license that can be found in the LICENSE file. | |
| 6 # | |
| 7 | |
| 8 function frog_build { | |
| 9 local infile=$1; | |
| 10 local outfile="$infile.js"; | |
| 11 local backup=".$file.old"; | |
| 12 [ -f $outfile ] && cp $outfile $backup; | |
| 13 ../../frog/minfrog --out=$outfile --compile-only $infile | |
| 14 if [ -f $backup ]; then | |
| 15 if `diff $outfile $backup -q > /dev/null`; then | |
| 16 echo " - $outfile remains unchanged "; | |
| 17 else | |
| 18 echo " - $outfile was updated "; | |
| 19 fi; | |
| 20 rm $backup; | |
| 21 fi | |
| 22 } | |
| 23 | |
| 24 # Rebuild pond and the compiler isolate using minfrog | |
| 25 frog_build pond.dart | |
| 26 frog_build compiler.dart | |
| 27 | |
| 28 # Build the editors module | |
| 29 cat codemirror/lib/codemirror.js \ | |
| 30 codemirror/mode/dart/dart.js \ | |
| 31 codemirror/mode/htmlmixed/htmlmixed.js \ | |
| 32 codemirror/mode/xml/xml.js \ | |
| 33 codemirror/mode/javascript/javascript.js \ | |
| 34 codemirror/mode/css/css.js \ | |
| 35 codemirror/mode/diff/diff.js \ | |
| 36 editors.js > editors_module.js | |
| OLD | NEW |