[travis ci] Updates generate-cocosfiles.sh.
Merge pull request #5583 from dumganhar/develop

[travis ci] Updates generate-cocosfiles.sh.