To get started with Android, you'll need to get familiar with [Git and Repo] (http://source.android.com/download/using-repo).
To initialize your local repository using the aospX trees, use a command like this:
repo init -u git://github.com/steppnasty/android.git -b jb-dev
Then to sync up:
repo sync
To build:
. build/envsetup.sh
lunch aospsx_glacier-userdebug
make -j4 aospsx