Chromium Code Reviews| 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. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 # Resolve a unicode encoding issue in dom-innerHTML.html. | 57 # Resolve a unicode encoding issue in dom-innerHTML.html. |
| 58 NBSP=$(python -c 'print u"\u00A0".encode("utf-8")') | 58 NBSP=$(python -c 'print u"\u00A0".encode("utf-8")') |
| 59 sed -i 's/['"$NBSP"']/\\u00A0/g' components/polymer/polymer-mini.html | 59 sed -i 's/['"$NBSP"']/\\u00A0/g' components/polymer/polymer-mini.html |
| 60 | 60 |
| 61 ./extract_inline_scripts.sh components components-chromium | 61 ./extract_inline_scripts.sh components components-chromium |
| 62 | 62 |
| 63 # Remove import of external resource in font-roboto (fonts.googleapis.com) | 63 # Remove import of external resource in font-roboto (fonts.googleapis.com) |
| 64 # and apply additional chrome specific patches. NOTE: Where possible create | 64 # and apply additional chrome specific patches. NOTE: Where possible create |
| 65 # a Polymer issue and/or pull request to minimize these patches. | 65 # a Polymer issue and/or pull request to minimize these patches. |
| 66 patch -p1 < chromium.patch | 66 patch -p1 < chromium.patch |
| 67 | |
| 68 new=$(git status --porcelain components-chromium | grep '^??' | \ | |
| 69 cut -d' ' -f2 | egrep '\.(html|js|css)$') | |
| 70 | |
| 71 if [[ ! -z "${new}" ]]; then | |
|
dschuyler
2015/11/21 02:48:48
nit: I'd have a preference for the build-in test '
Dan Beam
2015/11/21 02:56:25
https://google.github.io/styleguide/shell.xml?show
| |
| 72 echo | |
| 73 echo 'These files appear to have been added:' | |
| 74 echo "${new}" | sed 's/^/ /' | |
| 75 fi | |
| 76 | |
| 77 deleted=$(git status --porcelain components-chromium | grep '^.D' | \ | |
| 78 cut -d' ' -f3 | egrep '\.(html|js|css)$') | |
| 79 | |
| 80 if [[ ! -z "${deleted}" ]]; then | |
| 81 echo | |
| 82 echo 'These files appear to have been removed:' | |
| 83 echo "${deleted}" | sed 's/^/ /' | |
| 84 fi | |
| 85 | |
| 86 if [[ ! -z "${new}${deleted}" ]]; then | |
| 87 echo | |
| 88 fi | |
| OLD | NEW |