python无法使用_Python每日精深: repo 无法使用

安装git和curl 在终端窗口敲下面的命令:

sudo apt-get install git-core curl

安装repo脚本

curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" >~/bin/repo

给repo可执行权限

chmod a+x ~/bin/repo

新建一个目录mydroid , 然后进入该目录

repo init -u git://codeaurora.org/platform/manifest.git

repo sync

repo 原理:repo脚本其实就是组织Ubuntu Git工具去获取各个Project并把它们组织到同一个项目Android内。

==============================================================

如果出现如下错误,说明repo执行文件不对,需要找个可以用的。我在网上搜索了大半天才找到。

:line 1:syntax error near unexpected token 'newline'

line 1:

====================================================================================

如果出现download repo.git超时问题,请用

http://code.google.com/p/git-repo/

代替,具体如下

但是如何要下载android源代码的话,需要把~/bin/repo文件打开,把文件开头的

REPO_URL='git://android.git.kernel.org/tools/repo.git'

换成

REPO_URL='http://code.google.com/p/git-repo/ '

参考:

http://bbs.kaikuozhe.cn/read.php?tid=28473

http://topic.csdn.net/u/20110312/21/fe822ecb-2c1d-4da2-b3d1-c4993ec5fcfc.html

http://source.android.com/source/downloading.html

http://source.android.com/source/version-control.html

http://www.5ishare.com/tech/system/285542.shtml

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值