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' and | 9 # Chromium specific modifications. To launch the script you need 'bower' and |
10 # 'crisper' installed on your system. | 10 # 'crisper' installed on your system. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 NBSP=$(python -c 'print u"\u00A0".encode("utf-8")') | 73 NBSP=$(python -c 'print u"\u00A0".encode("utf-8")') |
74 sed -i 's/['"$NBSP"']/\\u00A0/g' components/polymer/polymer-mini.html | 74 sed -i 's/['"$NBSP"']/\\u00A0/g' components/polymer/polymer-mini.html |
75 | 75 |
76 ./extract_inline_scripts.sh components components-chromium | 76 ./extract_inline_scripts.sh components components-chromium |
77 | 77 |
78 # Remove import of external resource in font-roboto (fonts.googleapis.com) | 78 # Remove import of external resource in font-roboto (fonts.googleapis.com) |
79 # and apply additional chrome specific patches. NOTE: Where possible create | 79 # and apply additional chrome specific patches. NOTE: Where possible create |
80 # a Polymer issue and/or pull request to minimize these patches. | 80 # a Polymer issue and/or pull request to minimize these patches. |
81 patch -p1 --forward -r - < chromium.patch | 81 patch -p1 --forward -r - < chromium.patch |
82 | 82 |
| 83 # Undo any changes in paper-ripple, since Chromium's implementation is a fork of |
| 84 # the original paper-ripple. |
| 85 git checkout -- components-chromium/paper-ripple/* |
| 86 |
83 new=$(git status --porcelain components-chromium | grep '^??' | \ | 87 new=$(git status --porcelain components-chromium | grep '^??' | \ |
84 cut -d' ' -f2 | egrep '\.(html|js|css)$' || true) | 88 cut -d' ' -f2 | egrep '\.(html|js|css)$' || true) |
85 | 89 |
86 if [[ ! -z "${new}" ]]; then | 90 if [[ ! -z "${new}" ]]; then |
87 echo | 91 echo |
88 echo 'These files appear to have been added:' | 92 echo 'These files appear to have been added:' |
89 echo "${new}" | sed 's/^/ /' | 93 echo "${new}" | sed 's/^/ /' |
90 fi | 94 fi |
91 | 95 |
92 deleted=$(git status --porcelain components-chromium | grep '^.D' | \ | 96 deleted=$(git status --porcelain components-chromium | grep '^.D' | \ |
(...skipping 12 matching lines...) Expand all Loading... |
105 echo 'Creating a summary of components...' | 109 echo 'Creating a summary of components...' |
106 python create_components_summary.py > components_summary.txt | 110 python create_components_summary.py > components_summary.txt |
107 | 111 |
108 echo 'Creating GYP files for interfaces and externs...' | 112 echo 'Creating GYP files for interfaces and externs...' |
109 ./generate_gyp.sh | 113 ./generate_gyp.sh |
110 | 114 |
111 popd > /dev/null | 115 popd > /dev/null |
112 | 116 |
113 echo 'Searching for unused elements...' | 117 echo 'Searching for unused elements...' |
114 python "$(dirname "$0")"/find_unused_elements.py | 118 python "$(dirname "$0")"/find_unused_elements.py |
OLD | NEW |