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

Side by Side Diff: scripts/newbitmaps/images/make_yaml_from_hwids

Issue 6878074: Adding bitmaps that can't be generated by ImageMagick (Closed) Base URL: ssh://gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
1 #!/bin/bash -eu 1 #!/bin/bash -eu
2 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # 5 #
6 # Generate a new yaml file for each specified hwid_*.bmp file. 6 # Generate a new yaml file for each specified hwid_*.bmp file.
7 # 7 #
8 8
9 # Do initial release locales only, 'cause I'm in a hurry. GB == US. 9 # I'm sorting the locales in more-or-less geographical order. Right should move
10 locales="en es fr it nl de" 10 # east, left should move west. Of course we'll start in the US. :-)
11 locales="en es_419 pt_BR en_GB fr es pt_PT ca it de el nl da no sv fi et lv lt r u pl cs sk hu sl sr hr bg ro uk tr iw ar fa hi th vi id fil zh_CN zh_TW ko ja"
11 localedir="./localized_bitmaps" 12 localedir="./localized_bitmaps"
12 13
13 # Arbitrary padding 14 # Arbitrary padding
14 ypad=5 15 ypad=5
15 xpad=10 16 xpad=10
16 yborder=40 17 yborder=40
17 18
18 19
19 # Stuff to center and position bitmaps from the bottom of the screen upwards. 20 # Stuff to center and position bitmaps from the bottom of the screen upwards.
20 21
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 211
211 # Let's try to use the native one first, if we can. 212 # Let's try to use the native one first, if we can.
212 guess_locale "$yaml_file" 213 guess_locale "$yaml_file"
213 214
214 for lc in $newlocales; do 215 for lc in $newlocales; do
215 echo " - [ ${lc}_devel, ${lc}_remove, ${lc}_yuck, ${lc}_insert ]" >> \ 216 echo " - [ ${lc}_devel, ${lc}_remove, ${lc}_yuck, ${lc}_insert ]" >> \
216 "$yaml_file" 217 "$yaml_file"
217 done 218 done
218 219
219 done 220 done
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698