To initialize your local repository using the AOSP trees, use a command like this:
repo init -u git://github.com/swatz93/aosp_manifest.git -b test
```
Then to sync up:
````bash
repo sync
```
Finally to build:
````bash
./build.sh device_codename
```
Example:
````bash
./build.sh otus
```