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

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

Issue 1651273002: Polymer: make reproduce.sh re-entrant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes 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
« no previous file with comments | « third_party/polymer/v1_0/extract_inline_scripts.sh ('k') | no next file » | 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 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
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
21 rm components/*/.travis.yml 21 rm components/*/.travis.yml
22 22
23 mv components/web-animations-js ../../web-animations-js/sources 23 mv components/web-animations-js ../../web-animations-js/sources
24 cp ../../web-animations-js/sources/COPYING ../../web-animations-js/LICENSE 24 cp ../../web-animations-js/sources/COPYING ../../web-animations-js/LICENSE
25 25
26 # Remove source mapping directives since we don't compile the maps. 26 # Remove source mapping directives since we don't compile the maps.
(...skipping 24 matching lines...) Expand all
51 51
52 # Resolve a unicode encoding issue in dom-innerHTML.html. 52 # Resolve a unicode encoding issue in dom-innerHTML.html.
53 NBSP=$(python -c 'print u"\u00A0".encode("utf-8")') 53 NBSP=$(python -c 'print u"\u00A0".encode("utf-8")')
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 --forward -r - < 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)$' || true) 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)$' || true) 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 84
85 python create_components_summary.py > components_summary.txt 85 python create_components_summary.py > components_summary.txt
OLDNEW
« no previous file with comments | « third_party/polymer/v1_0/extract_inline_scripts.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698