Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1392992
  • 博文数量: 343
  • 博客积分: 13098
  • 博客等级: 上将
  • 技术积分: 2862
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-06 00:35
文章存档

2012年(131)

2011年(31)

2010年(53)

2009年(23)

2008年(62)

2007年(2)

2006年(36)

2005年(5)

分类: LINUX

2008-11-05 02:08:33

这几天好像  都没法访问,所以一直没拿到android的source code。无聊时看了下这个页面的快照,发现source还可以通过git拿的,赶快试了一下,发现git server是好用的,而且速度还不错。大家也可以通过下面的办法来取source code:
 
To install, initialize, and configure Repo, follow these steps:
Make sure you have a ~/bin directory in your home directory, and check to be sure that this bin directory is in your path:
  $ cd ~
  $ mkdir bin
  $ echo $PATH
Download the repo script and make sure it is executable:
$ curl >~/bin/repo
$ chmod a+x ~/bin/repo
Create an empty directory to hold your working files:
$ mkdir mydroid
$ cd mydroid
Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest:
$ repo init -u git://android.git.kernel.org/platform/manifest.git
When prompted, configure Repo with your real name and email address. If you plan to submit code, use an email address that is associated with a Google account.
A successful initialization will end with a message such as
   repo initialized in /mydroid
 
To pull down files to your working directory from the repositories as specified in the default manifest, run
   $ repo sync 

阅读(1615) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~