To initialize your local repository using the AOSP trees, use a command like this:
repo init -u git://github.com/nbehary/manifest.git -b master
```
Then to sync up:
````bash
repo sync
```
Finally to build:
````bash
. build/envsetup.sh
lunch -> (device number)
make -j8 otapackage
```