最終更新:2016-11-15 (火) 12:34:42 (2712d)
Repo
Top / Repo
a repository management tool that we built on top of Git
https://source.android.com/source/developing.html
インストール
- https://source.android.com/source/downloading.html
mkdir ~/bin PATH=~/bin:$PATH
- さらに新URL
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo
昔の
- 新URL
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo
- 旧URL(404)
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo chmod a+x ~/bin/repo
Linux/~/binをPATHに追加
export PATH=~/bin:$PATH
Cygwin
- .bash_profileで下記を有効にする。
if [ -d "${HOME}/bin" ] ; then PATH="${HOME}/bin:${PATH}" fi
Ubuntu
Gitの設定
$ git config --global user.name "Your Name" $ git config --global user.email "you@example.com"
AOSP
repo init -u https://android.googlesource.com/platform/manifest #master repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1 #ブランチを指定 repo sync
コマンド (repo)
- repo init - Initialize repo in the current directory
- repo sync - Update working tree to the latest revision
- repo help
便利な機能
- 並列数を増やす(ICSからデフォルトの並列数が1→4に)
repo sync -j16