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

Unified Diff: grit/format/repack.py

Issue 7994004: Initial source commit to grit-i18n project. (Closed) Base URL: http://grit-i18n.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « grit/format/rc_unittest.py ('k') | grit/format/resource_map.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/format/repack.py
===================================================================
--- grit/format/repack.py (revision 0)
+++ grit/format/repack.py (revision 0)
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""
+A simple utility function to merge data pack files into a single data pack. See
+http://dev.chromium.org/developers/design-documents/linuxresourcesandlocalizedstrings
+for details about the file format.
+"""
+
+import sys
+
+import data_pack
+
+def main(argv):
+ if len(argv) < 3:
+ print ("Usage:\n %s <output_filename> <input_file1> [input_file2] ... " %
+ argv[0])
+ sys.exit(-1)
+ data_pack.DataPack.RePack(argv[1], argv[2:])
+
+if '__main__' == __name__:
+ main(sys.argv)
Property changes on: grit/format/repack.py
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « grit/format/rc_unittest.py ('k') | grit/format/resource_map.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698