| 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 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 # This kills harmless (but distracting) Chrome Developer Console spam | 41 # This kills harmless (but distracting) Chrome Developer Console spam |
| 42 # about missing scripts. | 42 # about missing scripts. |
| 43 perl -pi -e 's/<script src="packages.*"><\/script>//g' \ | 43 perl -pi -e 's/<script src="packages.*"><\/script>//g' \ |
| 44 $DEPLOYED/index.html | 44 $DEPLOYED/index.html |
| 45 perl -pi -e 's/<script src="packages.*"><\/script>//g' \ | 45 perl -pi -e 's/<script src="packages.*"><\/script>//g' \ |
| 46 $DEPLOYED/index_devtools.html | 46 $DEPLOYED/index_devtools.html |
| 47 | 47 |
| 48 # The polymer compilation step munges <img> src urls and adds a packages/ | 48 # The polymer compilation step munges <img> src urls and adds a packages/ |
| 49 # prefix to the url. Because of how we deploy we must undo this and remove | 49 # prefix to the url. Because of how we deploy we must undo this and remove |
| 50 # the prefix. Without this, images will show up as broken links. | 50 # the prefix. Without this, images will show up as broken links. |
| 51 perl -pi -e 's/packages\/observatory\/src\/observatory_elements\///g' \ | 51 perl -pi -e 's/packages\/observatory\/src\/elements\///g' \ |
| 52 $DEPLOYED/index.html | 52 $DEPLOYED/index.html |
| 53 perl -pi -e 's/packages\/observatory\/src\/observatory_elements\///g' \ | 53 perl -pi -e 's/packages\/observatory\/src\/elements\///g' \ |
| 54 $DEPLOYED/index_devtools.html | 54 $DEPLOYED/index_devtools.html |
| OLD | NEW |