cocos2d-x / plugin-x

Plugin-x is the plugin repository for cocos2d-x, it also provides a unified API for plugins.
71 stars 91 forks source link

Revise config.sh to not use hardcoded list of plugins. Also quote vars. #102

Closed nilium closed 10 years ago

nilium commented 10 years ago

Previous plugin list was hardcoded, which makes it difficult to do plugin development, as it requires third-party plugin developers to know to modify this script.

Instead, get the plugin source list using find, locating directories (symlinks permitted).

Spaces in plugin names are handled appropriately, assuming you're using bash 3.2-ish.

Additionally, variables, echos, etc. are mostly quoted now to avoid odd cases where a space in a name might be treated as a command invocation.

dumganhar commented 10 years ago

Thanks.