android 源码[2]
时间:2009-07-22 来源:fewlife
by tangke <[email protected]> 2009-06-10
目前android比较流行,笔者也跟着凑凑热闹,因为android是开发源代码的,所以我们一般情况下肯定要得到其最新源代码。
如何得到android的最新源代码
sudo apt-get install git-core curl
curl http://android.git.kernel.org/repo >git_android
mv git_android /usr/bin/
chmod +x /usr/bin/git_android
git_android init -u git://android.git.kernel.org/platform/manifest.git
git_android sync
不幸的是不断发生fatal和error,不停地重试才行。
估计是取源码的人太多了,服务器受不了了。
#!/bin/bash
echo "======start repo sync======"
git_android sync
while [ $? = 1 ]; do
echo "======sync failed, re-sync again======"
sleep 3
android sync
done
目前android比较流行,笔者也跟着凑凑热闹,因为android是开发源代码的,所以我们一般情况下肯定要得到其最新源代码。
如何得到android的最新源代码
sudo apt-get install git-core curl
curl http://android.git.kernel.org/repo >git_android
mv git_android /usr/bin/
chmod +x /usr/bin/git_android
git_android init -u git://android.git.kernel.org/platform/manifest.git
git_android sync
不幸的是不断发生fatal和error,不停地重试才行。
估计是取源码的人太多了,服务器受不了了。
#!/bin/bash
echo "======start repo sync======"
git_android sync
while [ $? = 1 ]; do
echo "======sync failed, re-sync again======"
sleep 3
android sync
done
相关阅读 更多 +