| 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 # 'vulcanize' to be install in your system. | 10 # 'vulcanize' to be install in 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 | 18 |
| 18 bower install | 19 bower install |
| 19 | 20 |
| 21 rm -rf components/web-animations-js/{test,node_modules} |
| 22 mv components/web-animations-js ../web-animations-js/sources |
| 23 cp ../web-animations-js/sources/COPYING ../web-animations-js/LICENSE |
| 24 |
| 20 # These components are deprecated or needed only for demos. | 25 # These components are deprecated or needed only for demos. |
| 21 rm -rf components/{core-component-page,core-field,font-roboto,webcomponentsjs} | 26 rm -rf components/{core-component-page,core-field,font-roboto,webcomponentsjs} |
| 22 | 27 |
| 23 # Make checkperms.py happy. | 28 # Make checkperms.py happy. |
| 24 find components/{core-list,core-resizable} -type f -exec chmod -x {} \; | 29 find components/{core-list,core-resizable} -type f -exec chmod -x {} \; |
| 25 | 30 |
| 26 # Remove carriage returns to make CQ happy. | 31 # Remove carriage returns to make CQ happy. |
| 27 find components -type f \( -name \*.html -o -name \*.css -o -name \*.js\ | 32 find components -type f \( -name \*.html -o -name \*.css -o -name \*.js\ |
| 28 -o -name \*.md -o -name \*.sh -o -name \*.json -o -name \*.gitignore \)\ | 33 -o -name \*.md -o -name \*.sh -o -name \*.json -o -name \*.gitignore \)\ |
| 29 -print0 | xargs -0 sed -i -e $'s/\r$//g' | 34 -print0 | xargs -0 sed -i -e $'s/\r$//g' |
| 30 | 35 |
| 31 # TODO(dzhioev): remove when | 36 # TODO(dzhioev): remove when |
| 32 # https://code.google.com/p/grit-i18n/issues/detail?id=30 is fixed | 37 # https://code.google.com/p/grit-i18n/issues/detail?id=30 is fixed |
| 33 patch -p1 < chromium.patch | 38 patch -p1 < chromium.patch |
| 34 | 39 |
| 35 ./extract_inline_scripts.sh components components-chromium | 40 ./extract_inline_scripts.sh components components-chromium |
| 36 | 41 |
| OLD | NEW |