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

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

Issue 1558403002: Update crisper to use --script-in-head=false now that it's respected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | 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 set -e 7 set -e
8 8
9 if [ "$#" -ne 2 ] 9 if [ "$#" -ne 2 ]
10 then 10 then
(...skipping 26 matching lines...) Expand all
37 -not -name "index.html" \ 37 -not -name "index.html" \
38 -not -name "metadata.html" | \ 38 -not -name "metadata.html" | \
39 xargs grep -l "<script>" | \ 39 xargs grep -l "<script>" | \
40 while read original_html_name 40 while read original_html_name
41 do 41 do
42 dir=$(dirname "$original_html_name") 42 dir=$(dirname "$original_html_name")
43 name=$(basename "$original_html_name" .html) 43 name=$(basename "$original_html_name" .html)
44 44
45 html_without_js="$dir/$name-extracted.html" 45 html_without_js="$dir/$name-extracted.html"
46 extracted_js="$dir/$name-extracted.js" 46 extracted_js="$dir/$name-extracted.js"
47 crisper --source "$original_html_name" --html "$html_without_js" --js "$extrac ted_js" 47 crisper --script-in-head=false --source "$original_html_name" \
48 --html "$html_without_js" --js "$extracted_js"
48 mv "$html_without_js" "$original_html_name" 49 mv "$html_without_js" "$original_html_name"
49 done 50 done
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698