同步CM9源代码
# 安裝所需的包 sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev default-jdk sudo apt-get install squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool mkdir -p ~/bin mkdir -p ~/Source/Ics/ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo sudo chmod a+x ~/bin/repo cd ~/Source/Ics/ ~/bin/repo init -u git://github.com/CyanogenMod/android.git -b ics #以下用于解決同步過程出現(xiàn)無法斷點續(xù)傳,或是git太繁忙出現(xiàn)同步錯誤 mkdir ~/.ssh cd ~/.ssh ssh-keygen -t rsa -C "linkscue@gmail.com" ssh -T git@github.com yes cat ~/.ssh/id_rsa.pub #登錄https://gitorious.org,注冊賬號并登錄,點擊Manage SSH Keys, 點擊Add SSH Key cd ~/Source/Ics ~/bin/repo sync -j16 # 把CM9源代碼導(dǎo)入Eclipse gedit ~/Source/Ics/development/ide/eclipse/README.importing-to-eclipse.txt #照里邊的提示步驟操作 cp ~/Source/Ics/development/ide/eclipse/.classpath ~/Source/Ics/ # 最終在Eclipse新建一個“Java Project”,使用已存在目錄,直指~/Source/Ics/即可!
------------
微博:http://weibo.com/scue
Github:http://github.com/scue
總結(jié)
- 上一篇: 国产操作系统——银河麒麟V10 SP1使
- 下一篇: css之高度塌陷及其解决方法