Chromium Code Reviews| OLD | NEW |
|---|---|
| (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>" | |
| OLD | NEW |