User Tools

Site Tools


android:repo-sync

如何用repo下载Android源码

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}"

/var/www/dokuwiki/wiki/data/pages/android/repo-sync.txt · Last modified: 2016/05/05 13:07 by 127.0.0.1