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

Unified Diff: third_party/polymer/v0_8/reproduce.sh

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v0_8/reproduce.sh
diff --git a/third_party/polymer/v0_8/reproduce.sh b/third_party/polymer/v0_8/reproduce.sh
index 4f476858a1366143babf36812b6aef631200a879..8c2c350d0c91f491cedac5ee71d19ae8ad1a419e 100755
--- a/third_party/polymer/v0_8/reproduce.sh
+++ b/third_party/polymer/v0_8/reproduce.sh
@@ -20,27 +20,28 @@ rm -rf components components-chromium
bower install
-# These components are deprecated or needed only for demos.
-rm -rf components/{iron-component-page,webcomponentsjs}
+# These components are needed only for demos and docs.
+rm -rf components/{hydrolysis,marked,marked-element,prism,prism-element,\
+iron-component-page,iron-doc-viewer,webcomponentsjs}
+
+# Remove unused gzipped binary which causes git-cl problems.
+rm components/web-animations-js/web-animations.min.js.gz
# Test and demo directories aren't needed.
rm -rf components/*/{test,demo}
rm -rf components/polymer/explainer
# Make checkperms.py happy.
+find components/*/hero.svg -type f -exec chmod -x {} \;
find components/iron-selector -type f -exec chmod -x {} \;
-chmod +x components/polymer/build.bat
# Remove carriage returns to make CQ happy.
find components -type f \( -name \*.html -o -name \*.css -o -name \*.js\
-o -name \*.md -o -name \*.sh -o -name \*.json -o -name \*.gitignore\
-o -name \*.bat \) -print0 | xargs -0 sed -i -e $'s/\r$//g'
-./extract_inline_scripts.sh components components-chromium
+# Resolve a unicode encoding issue in dom-innerHTML.html.
+NBSP=$(python -c 'print u"\u00A0".encode("utf-8")')
+sed -i 's/['"$NBSP"']/\\u00A0/g' components/polymer/polymer-mini.html
-# Actually fully vulcanize polymer.html to avoid needing to serve each file in
-# the library separately.
-vulcanize --inline-scripts components/polymer/polymer.html > components-chromium/polymer/polymer.html
-crisper --source components-chromium/polymer/polymer.html\
- --html "components-chromium/polymer/polymer.html"\
- --js "components-chromium/polymer/polymer.js"
+./extract_inline_scripts.sh components components-chromium

Powered by Google App Engine
This is Rietveld 408576698