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

Side by Side Diff: chrome/tools/build/mac/generate_localizer

Issue 334049: Move Mac build tool scripts only used by chrome.gyp from build/mac into chrome/tools/build/mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « chrome/tools/build/mac/dump_product_syms ('k') | chrome/tools/build/mac/pkg-dmg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Usage: generate_localizer [xib_path] [output_dot_h_path] [output_dot_mm_path] 7 # Usage: generate_localizer [xib_path] [output_dot_h_path] [output_dot_mm_path]
8 # 8 #
9 # Extracts all the localizable strings that start with "^IDS" from the given 9 # Extracts all the localizable strings that start with "^IDS" from the given
10 # xib file, and then generates a localizer to process those strings. 10 # xib file, and then generates a localizer to process those strings.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 # Write out the file 125 # Write out the file
126 file_fd = open(output_path, 'w') 126 file_fd = open(output_path, 'w')
127 file_fd.write(h_file_content) 127 file_fd.write(h_file_content)
128 file_fd.close() 128 file_fd.close()
129 129
130 return 0 130 return 0
131 131
132 if __name__ == '__main__': 132 if __name__ == '__main__':
133 sys.exit(Main(sys.argv)) 133 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « chrome/tools/build/mac/dump_product_syms ('k') | chrome/tools/build/mac/pkg-dmg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698