Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: third_party/polymer/v1_0/reproduce.sh

Issue 2925993002: Polymer: Remove <paper-material> from polymer_resources.grdp file. (Closed)
Patch Set: Undo python change Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/webui/resources/polymer_resources.grdp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 check_dep() { 12 check_dep() {
13 eval "$1" >/dev/null 2>&1 13 eval "$1" >/dev/null 2>&1
14 if [ $? -ne 0 ]; then 14 if [ $? -ne 0 ]; then
15 echo >&2 "This script requires $2." 15 echo >&2 "This script requires $2."
16 echo >&2 "Have you tried $3?" 16 echo >&2 "Have you tried $3?"
17 exit 1 17 exit 1
18 fi 18 fi
19 } 19 }
20 20
21 check_dep "which npm" "npm" "visiting https://nodejs.org/en/" 21 check_dep "which npm" "npm" "visiting https://nodejs.org/en/"
22 check_dep "which bower" "bower" "npm install -g bower" 22 check_dep "which bower" "bower" "npm install -g bower"
23 check_dep "which crisper" "crisper" "npm install -g crisper" 23 check_dep "which crisper" "crisper" "npm install -g crisper"
24 check_dep "which polymer-css-build" "polymer-css-build" \
dpapad 2017/06/07 20:44:45 I am also removing this since it is a left-over fr
25 "npm install -g polymer-css-build"
26 check_dep "which rsync" "rsync" "apt-get install rsync" 24 check_dep "which rsync" "rsync" "apt-get install rsync"
27 check_dep "python -c 'import bs4'" "bs4" "apt-get install python-bs4" 25 check_dep "python -c 'import bs4'" "bs4" "apt-get install python-bs4"
28 check_dep "sed --version | grep GNU" \ 26 check_dep "sed --version | grep GNU" \
29 "GNU sed as 'sed'" "'brew install gnu-sed --with-default-names'" 27 "GNU sed as 'sed'" "'brew install gnu-sed --with-default-names'"
30 28
31 set -e 29 set -e
32 30
33 pushd "$(dirname "$0")" > /dev/null 31 pushd "$(dirname "$0")" > /dev/null
34 32
35 rm -rf components 33 rm -rf components
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 echo 'Creating a summary of components...' 106 echo 'Creating a summary of components...'
109 python create_components_summary.py > components_summary.txt 107 python create_components_summary.py > components_summary.txt
110 108
111 echo 'Creating GYP files for interfaces and externs...' 109 echo 'Creating GYP files for interfaces and externs...'
112 ./generate_gyp.sh 110 ./generate_gyp.sh
113 111
114 popd > /dev/null 112 popd > /dev/null
115 113
116 echo 'Searching for unused elements...' 114 echo 'Searching for unused elements...'
117 python "$(dirname "$0")"/find_unused_elements.py 115 python "$(dirname "$0")"/find_unused_elements.py
OLDNEW
« no previous file with comments | « no previous file | ui/webui/resources/polymer_resources.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698