[参考]
http://qiita.com/marutanm/items/0ac6183ff5affef0de84
cloneして初期設定。
基本的にはREADME.md に書いてある通りに実施だが、
タグを切り替えることでバージョン指定できるようにする。
$ cd ~/Library
$ git clone https://github.com/cocos2d/cocos2d-x.git
$ cd cocos2d-x
$
バージョン3.3をチェックアウト
$ git tag | grep 3.3
cocos2d-x-3.3
cocos2d-x-3.3alpha0
cocos2d-x-3.3beta0
cocos2d-x-3.3rc0
cocos2d-x-3.3rc1
cocos2d-x-3.3rc2
$ git checkout cocos2d-x-3.3
Note: checking out 'cocos2d-x-3.3'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at e060360... Merge pull request #9483 from cocoscodeide/v3
$ git status
HEAD detached at cocos2d-x-3.3
nothing to commit, working directory clean
依存・サブモジュールを落として、setup.pyでパスを通す。
$ python download-deps.py
$ git submodule update --init
$
$./setup.py