====== 如何用repo下载Android源码 ====== 参考:http://source.android.com/download ====== repo init ====== repo init -u git://android.git.kernel.org/platform/manifest.git ====== repo sync ====== 一个自动sync的小脚本 ######################################################################### # Author: pengjianqing@gmail.com # Created Time: Tue 17 Nov 2009 11:05:51 PM CST # File Name: reposync.sh # Description:Welcome to visit:www.impjq.net for more information. ######################################################################### #!/bin/bash startat=`date` echo "======start repo sync======" repo sync let i=1 while [ $? = 1 ]; do #while [ ${i} -lt 10 ]; do echo “======sync failed, re-sync:${i} =====” sleep 3 repo sync ((i++)) done endat=`date` echo "start at ${startat}" echo "end at ${endat}"