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

Side by Side Diff: build/apply_locales.py

Issue 668249: Move apply_locales.py from src/chrome/tools/build/ to src/build/. (Closed)
Patch Set: '' Created 10 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
« no previous file with comments | « app/app.gyp ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/chrome/tools/build/apply_locales.py:r69-2775
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2009 The Chromium 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 # TODO: remove this script when GYP has for loops 6 # TODO: remove this script when GYP has for loops
7 7
8 import sys 8 import sys
9 import optparse 9 import optparse
10 10
(...skipping 25 matching lines...) Expand all
36 locale = 'en' 36 locale = 'en'
37 locale = locale.replace('-', '_') 37 locale = locale.replace('-', '_')
38 results.append(str_template.replace('ZZLOCALE', locale)) 38 results.append(str_template.replace('ZZLOCALE', locale))
39 39
40 # Quote each element so filename spaces don't mess up GYP's attempt to parse 40 # Quote each element so filename spaces don't mess up GYP's attempt to parse
41 # it into a list. 41 # it into a list.
42 print ' '.join(["'%s'" % x for x in results]) 42 print ' '.join(["'%s'" % x for x in results])
43 43
44 if __name__ == '__main__': 44 if __name__ == '__main__':
45 sys.exit(main(sys.argv)) 45 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « app/app.gyp ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698