OLD | NEW |
---|---|
(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 | |
justincohen
2016/05/20 15:39:01
comment explaining what the script does.
| |
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', | |
justincohen
2016/05/20 15:39:00
I guess gn can't call out to exec itself? This is
| |
20 datapack_dir, '-o', output_dir] + locales) | |
21 sys.exit(1) | |
22 | |
23 | |
24 if __name__ == '__main__': | |
25 Main(sys.argv[1:]) | |
OLD | NEW |