在windows下下载android源码
2010-05-08 18:25:00 来源:WEB开发网注意需要进入到相应的目录下才能下载。我下载完毕后发现全部放到根目录下了,故最后用下面的python脚本进行了移动
import fileinput
import sys
import re
import os
import string
outfp = open("D:/cj/project/android/tools/move.sh","w")
for line in fileinput.input("D:/cj/project/android/tools/git-list"):
path = os.path.dirname(line)
file = os.path.basename(line)
file = file.replace("", "")
file = file.replace(" ", "")
xx = ""
for dirx in path.split("/"):
xx = xx + dirx + "/"
outfp.write("mkdir " + xx + " ")
outfp.write("mv " + file + " " + path + " ")
outfp.close()
2:将该列表保存在源代码目录下,文件名为update.sh
3:在git窗口下执行: update.sh
然后你就慢慢等待吧。
git列表文件为:
git clone git://android.git.kernel.org/tools/gwtexpui.git
git clone git://android.git.kernel.org/tools/gerrit-contactstore.git
git clone git://android.git.kernel.org/tools/gerrit-keyapplet.git
git clone git://android.git.kernel.org/tools/executablewar.git
git clone git://android.git.kernel.org/tools/test/project0.git
git clone git://android.git.kernel.org/tools/test/manifest.git
git clone git://android.git.kernel.org/tools/repo.git
git clone git://android.git.kernel.org/tools/protobuf.git
git clone git://android.git.kernel.org/tools/manifest.git
git clone git://android.git.kernel.org/tools/gwtorm.git
git clone git://android.git.kernel.org/tools/gwtjsonrpc.git
git clone git://android.git.kernel.org/tools/gerrit.git
git clone git://android.git.kernel.org/tools/android-issuetrackerredirect.git
git clone git://android.git.kernel.org/platform/vendor/qcom/surf.git
git clone git://android.git.kernel.org/platform/vendor/htc/dream.git
更多精彩
赞助商链接