Re: [Help][Chromium]How to run the GRIT tool

115 views
Skip to first unread message

Anton Vayvod

unread,
Oct 9, 2010, 3:06:34 PM10/9/10
to 我的年华, chromium-dev
Hello.

Please, use only chromium-dev in address line when asking such questions, it's enough to get an answer usually. Please, don't use my google.com address on Chromium mailing lists.

To run Python script you may run "python script.py". By running "python grit.py help" you're running Grit tool which is a Python script. You need to run it with different argument, like "python grit.py build". How this command works and what arguments you need to provide, you may find by running "python grit.py help build".

Hope this helps,
Anton.

On Sat, Oct 9, 2010 at 9:39 AM, 我的年华 <8695...@qq.com> wrote:
Dear you,
          Hi! I don't know how to run the GRIT tool in the MS-DOS of Windows operating system. 
          In the MS-DOS, I run "python grit.py help", and get the result:
          
...\src\tools\grit>python grit.py help
GRIT - the Google Resource and Internationalization Tool
Copyright (c) Google Inc. 2010

Usage: grit [GLOBALOPTIONS] TOOL [args to tool]

Global options:

  -i INPUT  Specifies the INPUT file to use (a .grd file).  If this is not
            specified, GRIT will look for the environment variable GRIT_INPUT.
            If it is not present either, GRIT will try to find an input file
            named 'resource.grd' in the current working directory.

  -v        Print more verbose runtime information.

  -x        Print extremely verbose runtime information.  Implies -v

  -p FNAME  Specifies that GRIT should profile its execution and output the
            results to the file FNAME.

Tools:

  TOOL can be one of the following:
    build        A tool that builds RC files for compilation.
    newgrd       Create a new empty .grd file.
    rc2grd       A tool for converting .rc source files to .grd files.
    transl2tc    Import existing translations in RC format into the TC
    sdiff        View differences without regard for translateable portions.
    resize       Generate a file where you can resize a given dialog.
    unit         Use this tool to run all the unit tests for GRIT.
    count        Exports all translateable messages into an XMB file.

  For more information on how to use a particular tool, and the specific
  arguments you can send to that tool, execute 'grit help TOOL'


and I continue to run "grit", and get the result:
...\src\tools\grit>grit
grit is not a internal or external command.


Could you tell me how to run the GRIT tool?

Thanks!
                                                                                                                              a programmer of loving Chromium


Reply all
Reply to author
Forward
0 new messages