安装depot_tools

chromium和Chromium OS使用一套叫做depot_tools的脚本来管理代码签出和审查。

 

 

安装步骤:

  1.取得depot_tools;你可以选择一下这些方式:

  • 只读签出(如果你不打算立刻提交你改动过的代码,你应该选择这个):

           svn co http://src.chromium.org/svn/trunk/tools/depot_tools      

           可写入签出(如果你想更新depot_tools):

           svn co svn://svn.chromium.org/chrome/trunk/tools/depot_tools

 

  • 下载depot_tools.zip或者depot_tools.tar.gz并解压

         Windows用户:如果你没有安装SVN,请这样设置。第一次运行gclient将安装SVN。确保没用Cygwin's来解压缩。如果你第一次

         运行gclient就遇见陌生的文件系统错误,你可能要关闭Windows搜索引擎。

 

 

 

   2.把depot_tools目录加入你的环境变量中:

  • 例如,使用默认的命令行模式:

          $ export PATH=`pwd`/depot_tools:"$PATH"

  • 可选:你可以添加你的.profile文件和你的shell等价,那么你每重新打开一个shell就不必重设$PATH。

 

 


 

原地址:http://dev.chromium.org/developers/how-tos/install-depot-tools

 

Install the depot_tools

Chromium and Chromium OS use a package of scripts called depot_tools to manage checkouts and code reviews. If you want more details about depot_tools, you can check the depot_tools information page. The depot_tools package includes gclient, gcl, git-cl, repo, and others.

Steps for installing

  1. Retrieve depot_tools; select one of these ways:
    • Read only checkout (if you don't plan to commit changes back to depot_tools right away, you should do this):
      svn co http://src.chromium.org/svn/trunk/tools/depot_tools

      Writable checkout (if you intend to update depot_tools):
      svn co svn://svn.chromium.org/chrome/trunk/tools/depot_tools

    • Download depot_tools.zip or depot_tools.tar.gz and decompress it.
      Windows users: If you don't have Subversion installed already, use this option. The first run of gclient will install svn for you. Make sure not to use Cygwin's unzip when expanding the depot_tools archive. If you see strange errors with the file system on the first run of gclient, you may want to disable Windows Indexing.

  2. Add depot_tools to your PATH:

  •  
    • For example, for the default bash shell, use:
      $ export PATH=`pwd`/depot_tools:"$PATH"
    • Optional: You may want to add this to your .profile file or your shell’s equivalent so that you don’t need to reset your $PATH manually each time you open a new shell.

See also Howto: depot tools

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值