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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 # Test and demo directories aren't needed. | 34 # Test and demo directories aren't needed. |
35 rm -rf components/*/{test,demo} | 35 rm -rf components/*/{test,demo} |
36 rm -rf components/polymer/explainer | 36 rm -rf components/polymer/explainer |
37 | 37 |
38 # Remove promise-polyfill and components which depend on it. | 38 # Remove promise-polyfill and components which depend on it. |
39 rm -rf components/promise-polyfill | 39 rm -rf components/promise-polyfill |
40 rm -rf components/iron-ajax | 40 rm -rf components/iron-ajax |
41 rm -rf components/iron-form | 41 rm -rf components/iron-form |
42 | 42 |
43 # Remove iron-image as it's only a developer dependency of iron-dropdown. | |
44 # https://github.com/PolymerElements/iron-dropdown/pull/17 | |
45 rm -rf components/iron-image | |
46 | |
47 # Make checkperms.py happy. | 43 # Make checkperms.py happy. |
48 find components/*/hero.svg -type f -exec chmod -x {} \; | 44 find components/*/hero.svg -type f -exec chmod -x {} \; |
49 find components/iron-selector -type f -exec chmod -x {} \; | 45 find components/iron-selector -type f -exec chmod -x {} \; |
50 | 46 |
51 # Remove carriage returns to make CQ happy. | 47 # Remove carriage returns to make CQ happy. |
52 find components -type f \( -name \*.html -o -name \*.css -o -name \*.js\ | 48 find components -type f \( -name \*.html -o -name \*.css -o -name \*.js\ |
53 -o -name \*.md -o -name \*.sh -o -name \*.json -o -name \*.gitignore\ | 49 -o -name \*.md -o -name \*.sh -o -name \*.json -o -name \*.gitignore\ |
54 -o -name \*.bat -o -name \*.svg \) -print0 | xargs -0 sed -i -e $'s/\r$//g' | 50 -o -name \*.bat -o -name \*.svg \) -print0 | xargs -0 sed -i -e $'s/\r$//g' |
55 | 51 |
56 # Resolve a unicode encoding issue in dom-innerHTML.html. | 52 # Resolve a unicode encoding issue in dom-innerHTML.html. |
(...skipping 21 matching lines...) Expand all Loading... |
78 | 74 |
79 if [[ ! -z "${deleted}" ]]; then | 75 if [[ ! -z "${deleted}" ]]; then |
80 echo | 76 echo |
81 echo 'These files appear to have been removed:' | 77 echo 'These files appear to have been removed:' |
82 echo "${deleted}" | sed 's/^/ /' | 78 echo "${deleted}" | sed 's/^/ /' |
83 fi | 79 fi |
84 | 80 |
85 if [[ ! -z "${new}${deleted}" ]]; then | 81 if [[ ! -z "${new}${deleted}" ]]; then |
86 echo | 82 echo |
87 fi | 83 fi |
OLD | NEW |