OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 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 |
| 4 # found in the LICENSE file. |
| 5 |
| 6 # TODO: remove this script when GYP has for loops |
| 7 |
| 8 import sys |
| 9 |
| 10 def main(argv): |
| 11 if len(argv) < 3: |
| 12 print 'ERROR: need string and list of locales' |
| 13 return 1 |
| 14 |
| 15 str_template = argv[1] |
| 16 locales = argv[2:] |
| 17 |
| 18 results = [] |
| 19 for locale in locales: |
| 20 results.append(str_template.replace('ZZLOCALE', locale)) |
| 21 |
| 22 # Quote each element so filename spaces don't mess up GYP's attempt to parse |
| 23 # it into a list. |
| 24 print " ".join(['"%s"' % x for x in results]) |
| 25 |
| 26 if __name__ == '__main__': |
| 27 sys.exit(main(sys.argv)) |
OLD | NEW |