分类: Android平台
2013-09-16 16:33:02
To install Repo $ mkdir ~/bin
$ PATH=~/bin:$PATH Download the Repo tool and ensure that it is executable: $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo
If couldn't download repo file, copy url to web browser.
For version 1.17, the SHA-1 checksum for repo is ddd79b6d5a7807e911b524cb223bc3544b661c28
For version 1.19, the SHA-1 checksum for repo is 92cbad8c880f697b58ed83e348d06619f8098e6c
Initializing a Repo client
After installing Repo, set up your client to access the Android source repository Create an empty directory to hold your working files. If you're using MacOS, this has to
be on a case-sensitive filesystem. Give it any name you like:$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORYRun repo init to bring down the latest version of Repo with all its most
recent bug fixes. You must specify a URL for the manifest, which specifies where the
various repositories included in the Android source will be placed within your working
directory.
-
$ repo init -u https://android.googlesource.com/platform/manifest
To check out a branch other than "master", specify it with -b:
http://blog.chinaunix.net/blog/post.html$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1