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

Side by Side Diff: ios/chrome/tools/strings/generate_localizable_strings.py

Issue 2026493002: [GN] Convert generate_localizable_strings.gni to use compiled_action.gni. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « ios/chrome/tools/strings/generate_localizable_strings.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import os
6 import sys
7
8
9 def Main(args):
10 if len(args) < 5:
11 sys.stderr.write(
12 'usage: %s tool config include_dir datapack_dir output_dir locales ...'
13 % os.path.basename(sys.argv[0]))
14 sys.exit(1)
15
16 tool, config_file, include_dir, datapack_dir, output_dir = args[:5]
17 locales = args[5:]
18
19 os.execv(tool, [tool, '-c', config_file, '-I', include_dir, '-p',
20 datapack_dir, '-o', output_dir] + locales)
21 sys.exit(1)
22
23
24 if __name__ == '__main__':
25 Main(sys.argv[1:])
OLDNEW
« no previous file with comments | « ios/chrome/tools/strings/generate_localizable_strings.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698