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

Unified Diff: third_party/polymer/v1_0/extract_inline_scripts.sh

Issue 1834313003: Remove unneeded files from third_party/polymer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore bower.json files. Created 4 years, 9 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/v1_0/extract_inline_scripts.sh
diff --git a/third_party/polymer/v1_0/extract_inline_scripts.sh b/third_party/polymer/v1_0/extract_inline_scripts.sh
index c6c22ecfeaff71c63fbb72c8400fe90c10643e8b..ca60af2f984af5e2636de2fc83b75983f20cecd4 100755
--- a/third_party/polymer/v1_0/extract_inline_scripts.sh
+++ b/third_party/polymer/v1_0/extract_inline_scripts.sh
@@ -21,15 +21,10 @@ fi
src="${1%/}"
dst="${2%/}"
-rsync -c --delete -r -v --exclude="compiled_resources*.gyp" "$src/" "$dst/"
+rsync -c --delete -r -v --exclude-from="rsync_exclude.txt" \
michaelpg 2016/04/02 02:15:53 also nice
+ --prune-empty-dirs "$src/" "$dst/"
-find "$dst" -name "*.html" \
- -not -path "*/demos/*" \
- -not -path "*/test/*" \
- -not -path "*/tests/*" \
- -not -name "demo*.html" \
- -not -name "index.html" \
- -not -name "metadata.html" | \
+find "$dst" -name "*.html" | \
xargs grep -l "<script>" | \
while read original_html_name
do

Powered by Google App Engine
This is Rietveld 408576698