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

Side by Side Diff: tools/polymer/txt_to_polymer_grdp.sh

Issue 984553002: Added helper scripts for modifying polymer_resources.grdp. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 #!/bin/bash
2
3 cat - <<END_OF_INPUT
4 <?xml version="1.0" encoding="utf-8"?>
5 <!--
6 This file is generated.
7 Please use 'src/tools/polymer/polymer_grdp_to_txt.sh' and
8 'src/tools/polymer/txt_to_polymer_grdp.sh' to modify it if possible.
9 Usage:
10 $ polymer_grdp_to_txt.sh polymer_resources.grdp > /tmp/list.txt
11 $ vim /tmp/list.txt
12 $ txt_to_polymer_grdp.sh /tmp/list.txt > polymer_resources.grdp
13 -->
14 <grit-part>
15 END_OF_INPUT
16 cat "$1" | LC_ALL=C sort -u | while read p
michaelpg 2015/03/06 04:09:31 why not 'sort "$1"' instead of 'cat "$1" | sort'?
17 do
18 name="IDR_POLYMER_$(tr '[a-z/.\-]' '[A-Z___]' <<< $p)"
19 path="../../../third_party/polymer/components-chromium/$p"
20 echo " <structure name=\"$name\""
21 echo " file=\"$path\""
22 echo " type=\"chrome_html\" />"
23 done
24 cat - <<END_OF_INPUT
25 <structure name="IDR_POLYMER_WEB_ANIMATIONS_JS_WEB_ANIMATIONS_NEXT_LITE_MIN_JS "
26 file="../../../third_party/web-animations-js/sources/web-animations -next-lite.min.js"
michaelpg 2015/03/06 04:09:31 optional: maybe put these in a separate .txt file?
27 type="chrome_html" />
28 <structure name="IDR_POLYMER_WEB_ANIMATIONS_JS_WEB_ANIMATIONS_NEXT_LITE_MIN_JS _MAP"
29 file="../../../third_party/web-animations-js/sources/web-animations -next-lite.min.js.map"
30 type="chrome_html" />
31 END_OF_INPUT
32 echo "</grit-part>"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698