| 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 14 matching lines...) Expand all Loading... |
| 25 check_dep "sed --version | grep GNU" \ | 25 check_dep "sed --version | grep GNU" \ |
| 26 "GNU sed as 'sed'" "'brew install gnu-sed --with-default-names'" | 26 "GNU sed as 'sed'" "'brew install gnu-sed --with-default-names'" |
| 27 | 27 |
| 28 set -e | 28 set -e |
| 29 | 29 |
| 30 pushd "$(dirname "$0")" > /dev/null | 30 pushd "$(dirname "$0")" > /dev/null |
| 31 | 31 |
| 32 rm -rf components | 32 rm -rf components |
| 33 rm -rf ../../web-animations-js/sources | 33 rm -rf ../../web-animations-js/sources |
| 34 | 34 |
| 35 bower install --no-color | 35 bower install --no-color --production |
| 36 | 36 |
| 37 rm components/*/.travis.yml | 37 rm components/*/.travis.yml |
| 38 | 38 |
| 39 mv components/web-animations-js ../../web-animations-js/sources | 39 mv components/web-animations-js ../../web-animations-js/sources |
| 40 cp ../../web-animations-js/sources/COPYING ../../web-animations-js/LICENSE | 40 cp ../../web-animations-js/sources/COPYING ../../web-animations-js/LICENSE |
| 41 | 41 |
| 42 # Remove source mapping directives since we don't compile the maps. | 42 # Remove source mapping directives since we don't compile the maps. |
| 43 sed -i 's/^\s*\/\/#\s*sourceMappingURL.*//' \ | 43 sed -i 's/^\s*\/\/#\s*sourceMappingURL.*//' \ |
| 44 ../../web-animations-js/sources/*.min.js | 44 ../../web-animations-js/sources/*.min.js |
| 45 | 45 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 echo 'Creating a summary of components...' | 114 echo 'Creating a summary of components...' |
| 115 python create_components_summary.py > components_summary.txt | 115 python create_components_summary.py > components_summary.txt |
| 116 | 116 |
| 117 echo 'Creating GYP files for interfaces and externs...' | 117 echo 'Creating GYP files for interfaces and externs...' |
| 118 ./generate_gyp.sh | 118 ./generate_gyp.sh |
| 119 | 119 |
| 120 popd > /dev/null | 120 popd > /dev/null |
| 121 | 121 |
| 122 echo 'Searching for unused elements...' | 122 echo 'Searching for unused elements...' |
| 123 python "$(dirname "$0")"/find_unused_elements.py | 123 python "$(dirname "$0")"/find_unused_elements.py |
| OLD | NEW |