cocos2d/cocos2d-x — pull request #3943 by lettas (2013-10-14 12:11:11+00:00)
Title: create_project.py does not rename/replace template projects completely.

## Issues

* Template project is not renamed on some platform projects.
* Template project_name is not replaced on some languages and platforms.

## examples

Create sample projects for all languages.

```
$ for language in cpp lua javascript; do tools/project-creator/create_project.py -k com.example.$language -p sample-$language -l $language; done
proj.ios : Done!
proj.android : Done!
proj.win32 : Done!
proj.mac : Done!
proj.linux : Done!
New project has been created in this path: /Users/xxx/Documents/work/lib/cocos2d/cocos2d-x-github/projects/sample-cpp
Have Fun!
proj.ios : Done!
proj.android : Done!
proj.win32 : Done!
proj.mac : Done!
proj.linux : Done!
New project has been created in this path: /Users/xxx/Documents/work/lib/cocos2d/cocos2d-x-github/projects/sample-lua
Have Fun!
proj.ios : Done!
proj.android : Done!
proj.win32 : Done!
proj.mac : Done!
New project has been created in this path: /Users/xxx/Documents/work/lib/cocos2d/cocos2d-x-github/projects/sample-javascript
Have Fun!
```

Find some template project_name.

```
$ ack -l HelloCpp projects
projects/sample-cpp/proj.android/.cproject
projects/sample-cpp/proj.ios_mac/HelloCpp.xcodeproj/project.pbxproj
projects/sample-cpp/proj.win32/HelloCpp.sln

$ ack -l HelloLua projects
projects/sample-lua/proj.ios_mac/HelloLua.xcodeproj/project.pbxproj
projects/sample-lua/proj.ios_mac/ios/main.m
projects/sample-lua/proj.ios_mac/ios/Prefix.pch
projects/sample-lua/proj.win32/game.rc
projects/sample-lua/proj.win32/HelloLua.sln
projects/sample-lua/proj.win32/HelloLua.vcxproj

$ ack -l HelloJavascript projects
projects/sample-javascript/proj.android/.cproject
projects/sample-javascript/proj.ios_mac/HelloJavascript.xcodeproj/project.pbxproj
projects/sample-javascript/proj.ios_mac/ios/Prefix.pch
projects/sample-javascript/proj.win32/HelloJavascript.sln
projects/sample-javascript/proj.win32/HelloJavascript.vcxproj
projects/sample-javascript/proj.win32/HelloJavascript.vcxproj.user
```