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

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

Issue 1623693002: Tidy up in Polymer directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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', 9 # Chromium specific modifications. To launch the script you need 'bower' and
10 # 'crisper', and 'vulcanize' installed on your system. 10 # 'crisper' installed on 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 rm -rf ../../web-animations-js/sources
18 18
19 bower install --no-color 19 bower install --no-color
20 20
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 sed -i 's/['"$NBSP"']/\\u00A0/g' components/polymer/polymer-mini.html 54 sed -i 's/['"$NBSP"']/\\u00A0/g' components/polymer/polymer-mini.html
55 55
56 ./extract_inline_scripts.sh components components-chromium 56 ./extract_inline_scripts.sh components components-chromium
57 57
58 # Remove import of external resource in font-roboto (fonts.googleapis.com) 58 # Remove import of external resource in font-roboto (fonts.googleapis.com)
59 # and apply additional chrome specific patches. NOTE: Where possible create 59 # and apply additional chrome specific patches. NOTE: Where possible create
60 # a Polymer issue and/or pull request to minimize these patches. 60 # a Polymer issue and/or pull request to minimize these patches.
61 patch -p1 < chromium.patch 61 patch -p1 < chromium.patch
62 62
63 new=$(git status --porcelain components-chromium | grep '^??' | \ 63 new=$(git status --porcelain components-chromium | grep '^??' | \
64 cut -d' ' -f2 | egrep '\.(html|js|css)$') 64 cut -d' ' -f2 | egrep '\.(html|js|css)$' || true)
65 65
66 if [[ ! -z "${new}" ]]; then 66 if [[ ! -z "${new}" ]]; then
67 echo 67 echo
68 echo 'These files appear to have been added:' 68 echo 'These files appear to have been added:'
69 echo "${new}" | sed 's/^/ /' 69 echo "${new}" | sed 's/^/ /'
70 fi 70 fi
71 71
72 deleted=$(git status --porcelain components-chromium | grep '^.D' | \ 72 deleted=$(git status --porcelain components-chromium | grep '^.D' | \
73 sed 's/^.//' | cut -d' ' -f2 | egrep '\.(html|js|css)$') 73 sed 's/^.//' | cut -d' ' -f2 | egrep '\.(html|js|css)$' || true)
74 74
75 if [[ ! -z "${deleted}" ]]; then 75 if [[ ! -z "${deleted}" ]]; then
76 echo 76 echo
77 echo 'These files appear to have been removed:' 77 echo 'These files appear to have been removed:'
78 echo "${deleted}" | sed 's/^/ /' 78 echo "${deleted}" | sed 's/^/ /'
79 fi 79 fi
80 80
81 if [[ ! -z "${new}${deleted}" ]]; then 81 if [[ ! -z "${new}${deleted}" ]]; then
82 echo 82 echo
83 fi 83 fi
84
85 python create_components_summary.py > components_summary.txt
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698