Home | History | Annotate | Download | only in format
      1 #!/usr/bin/env python
      2 # Copyright (c) 2012 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 """
      7 A simple utility function to merge data pack files into a single data pack. See
      8 http://dev.chromium.org/developers/design-documents/linuxresourcesandlocalizedstrings
      9 for details about the file format.
     10 """
     11 
     12 import os
     13 import sys
     14 if __name__ == '__main__':
     15   sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
     16 
     17 import grit.format.data_pack
     18 
     19 def main(argv):
     20   if len(argv) < 3:
     21     print ("Usage:\n  %s <output_filename> <input_file1> [input_file2] ... " %
     22            argv[0])
     23     sys.exit(-1)
     24   grit.format.data_pack.RePack(argv[1], argv[2:])
     25 
     26 if '__main__' == __name__:
     27   main(sys.argv)
     28