| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Reproduces the content of 'components' and 'components-chromium' using the | 7 # Reproduces the content of 'components' and 'components-chromium' using the |
| 8 # list of dependencies from 'bower.json'. Downloads needed packages and makes | 8 # list of dependencies from 'bower.json'. Downloads needed packages and makes |
| 9 # Chromium specific modifications. To launch the script you need 'bower', | 9 # Chromium specific modifications. To launch the script you need 'bower', |
| 10 # 'crisper', and 'vulcanize' installed on your system. | 10 # 'crisper', and 'vulcanize' installed on your system. |
| 11 | 11 |
| 12 set -e | 12 set -e |
| 13 | 13 |
| 14 cd "$(dirname "$0")" | 14 cd "$(dirname "$0")" |
| 15 | 15 |
| 16 rm -rf components components-chromium | 16 rm -rf components components-chromium |
| 17 rm -rf ../../web-animations-js/sources | 17 rm -rf ../../web-animations-js/sources |
| 18 | 18 |
| 19 bower install | 19 bower install |
| 20 | 20 |
| 21 rm components/*/.travis.yml |
| 22 |
| 21 mv components/web-animations-js ../../web-animations-js/sources | 23 mv components/web-animations-js ../../web-animations-js/sources |
| 22 cp ../../web-animations-js/sources/COPYING ../../web-animations-js/LICENSE | 24 cp ../../web-animations-js/sources/COPYING ../../web-animations-js/LICENSE |
| 23 | 25 |
| 24 # Remove unused gzipped binary which causes git-cl problems. | 26 # Remove unused gzipped binary which causes git-cl problems. |
| 25 rm ../../web-animations-js/sources/web-animations.min.js.gz | 27 rm ../../web-animations-js/sources/web-animations.min.js.gz |
| 26 | 28 |
| 27 # Remove source mapping directives since we don't compile the maps. | 29 # Remove source mapping directives since we don't compile the maps. |
| 28 sed -i 's/^\s*\/\/#\s*sourceMappingURL.*//' \ | 30 sed -i 's/^\s*\/\/#\s*sourceMappingURL.*//' \ |
| 29 ../../web-animations-js/sources/*.min.js | 31 ../../web-animations-js/sources/*.min.js |
| 30 | 32 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 57 # Resolve a unicode encoding issue in dom-innerHTML.html. | 59 # Resolve a unicode encoding issue in dom-innerHTML.html. |
| 58 NBSP=$(python -c 'print u"\u00A0".encode("utf-8")') | 60 NBSP=$(python -c 'print u"\u00A0".encode("utf-8")') |
| 59 sed -i 's/['"$NBSP"']/\\u00A0/g' components/polymer/polymer-mini.html | 61 sed -i 's/['"$NBSP"']/\\u00A0/g' components/polymer/polymer-mini.html |
| 60 | 62 |
| 61 ./extract_inline_scripts.sh components components-chromium | 63 ./extract_inline_scripts.sh components components-chromium |
| 62 | 64 |
| 63 # Remove import of external resource in font-roboto (fonts.googleapis.com) | 65 # Remove import of external resource in font-roboto (fonts.googleapis.com) |
| 64 # and apply additional chrome specific patches. NOTE: Where possible create | 66 # and apply additional chrome specific patches. NOTE: Where possible create |
| 65 # a Polymer issue and/or pull request to minimize these patches. | 67 # a Polymer issue and/or pull request to minimize these patches. |
| 66 patch -p1 < chromium.patch | 68 patch -p1 < chromium.patch |
| OLD | NEW |