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