| OLD | NEW |
| (Empty) | |
| 1 #!/bin/sh |
| 2 |
| 3 # A polymer application compiled with dart2js depends on |
| 4 # 4 js files: |
| 5 # 1) packages/shadow_dom/shadow_dom.debug.js |
| 6 # 2) packages/custom_element/custom-elements.debug.js |
| 7 # 3) packages/browser/interop.js |
| 8 # 4) index.html_bootstrap.dart.precompiled.js |
| 9 |
| 10 # This script rolls 1, 2, 3, and 4 into index.html_bootstrap.dart.js |
| 11 |
| 12 # Relative paths to four scripts. |
| 13 SHADOW_DOM="packages/shadow_dom/shadow_dom.debug.js" |
| 14 CUSTOM_ELEMENTS="packages/custom_element/custom-elements.debug.js" |
| 15 INTEROP="packages/browser/interop.js" |
| 16 OBSERVATORY="index.html_bootstrap.dart.precompiled.js" |
| 17 |
| 18 # Base directory |
| 19 BASE="out/web" |
| 20 |
| 21 INPUT="$BASE/$SHADOW_DOM" |
| 22 INPUT="$INPUT $BASE/$CUSTOM_ELEMENTS" |
| 23 INPUT="$INPUT $BASE/$INTEROP" |
| 24 INPUT="$INPUT $BASE/$OBSERVATORY" |
| 25 |
| 26 OUTPUT="$BASE/index.html_bootstrap.dart.js" |
| 27 |
| 28 # Rolling |
| 29 cat $INPUT > $OUTPUT |
| OLD | NEW |