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' 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. |
| 11 | 11 |
| 12 # Mac users - first install GNU-sed over the system sed: | |
|
michaelpg
2017/01/27 03:07:11
could we check for the version or behavior we need
scottchen
2017/01/27 19:48:39
Done.
| |
| 13 # `brew install gnu-sed --width-default-names` | |
|
michaelpg
2017/01/27 03:07:11
i'm going to guess this should be "with"?
scottchen
2017/01/27 19:48:39
Acknowledged.
| |
| 14 | |
| 12 check_dep() { | 15 check_dep() { |
| 13 eval "$1" >/dev/null 2>&1 | 16 eval "$1" >/dev/null 2>&1 |
| 14 if [ $? -ne 0 ]; then | 17 if [ $? -ne 0 ]; then |
| 15 echo >&2 "This script requires $2." | 18 echo >&2 "This script requires $2." |
| 16 echo >&2 "Have you tried $3?" | 19 echo >&2 "Have you tried $3?" |
| 17 exit 1 | 20 exit 1 |
| 18 fi | 21 fi |
| 19 } | 22 } |
| 20 | 23 |
| 21 check_dep "which npm" "npm" "visiting https://nodejs.org/en/" | 24 check_dep "which npm" "npm" "visiting https://nodejs.org/en/" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 echo 'Creating GYP files for interfaces and externs...' | 109 echo 'Creating GYP files for interfaces and externs...' |
| 107 ./generate_gyp.sh | 110 ./generate_gyp.sh |
| 108 | 111 |
| 109 echo 'Vulcanizing dependent UIs...' | 112 echo 'Vulcanizing dependent UIs...' |
| 110 python ../../../chrome/browser/resources/vulcanize.py | 113 python ../../../chrome/browser/resources/vulcanize.py |
| 111 | 114 |
| 112 popd > /dev/null | 115 popd > /dev/null |
| 113 | 116 |
| 114 echo 'Searching for unused elements...' | 117 echo 'Searching for unused elements...' |
| 115 python "$(dirname "$0")"/find_unused_elements.py | 118 python "$(dirname "$0")"/find_unused_elements.py |
| OLD | NEW |