分类: Delphi
2012-09-08 11:47:38
Make sure you have a bin/ directory in your home directory, and that it is included in your path:
$ mkdir ~/bin $ PATH=~/bin:$PATHDownload the Repo script and ensure it is executable:
$ curl > ~/bin/repo $ chmod a+x ~/bin/repocurl > ~/bin/repo
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 -uTo check out a branch other than "master", specify it with -b:
$ repo init -u -b android-4.1.1_r1